This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] OpenBSD/i386 kernel debugging improvement
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sun, 26 Feb 2006 14:10:28 +0100 (CET)
- Subject: [commit] OpenBSD/i386 kernel debugging improvement
This makes GDB recognize "soft" interrupts.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
"soft" interrupts.
Index: i386obsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386obsd-tdep.c,v
retrieving revision 1.29
diff -u -p -r1.29 i386obsd-tdep.c
--- i386obsd-tdep.c 22 Dec 2005 16:13:20 -0000 1.29
+++ i386obsd-tdep.c 26 Feb 2006 13:02:46 -0000
@@ -1,7 +1,7 @@
/* Target-dependent code for OpenBSD/i386.
Copyright (C) 1988, 1989, 1991, 1992, 1994, 1996, 2000, 2001, 2002,
- 2003, 2004, 2005
+ 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GDB.
@@ -423,9 +423,10 @@ i386obsd_trapframe_sniffer (const struct
return 0;
find_pc_partial_function (frame_pc_unwind (next_frame), &name, NULL, NULL);
- return (name && ((strcmp (name, "calltrap") == 0)
- || (strcmp (name, "syscall1") == 0)
- || (strncmp (name, "Xintr", 5) == 0)));
+ return (name && (strcmp (name, "calltrap") == 0
+ || strcmp (name, "syscall1") == 0
+ || strncmp (name, "Xintr", 5) == 0
+ || strncmp (name, "Xsoft", 5) == 0));
}
static const struct frame_unwind i386obsd_trapframe_unwind = {