aboutsummaryrefslogtreecommitdiff
path: root/devel/gdb66/files/patch-i386-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gdb66/files/patch-i386-tdep.c')
-rw-r--r--devel/gdb66/files/patch-i386-tdep.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/gdb66/files/patch-i386-tdep.c b/devel/gdb66/files/patch-i386-tdep.c
new file mode 100644
index 000000000000..f91d21da8fc2
--- /dev/null
+++ b/devel/gdb66/files/patch-i386-tdep.c
@@ -0,0 +1,12 @@
+--- gdb+dejagnu-5.2.90_20021011/gdb/i386-tdep.c Mon Aug 26 11:35:25 2002
++++ newgdb/gdb/i386-tdep.c Sun Oct 13 14:15:58 2002
+@@ -534,6 +534,9 @@
+ static CORE_ADDR
+ i386_frame_saved_pc (struct frame_info *frame)
+ {
++ if (kernel_debugging)
++ return fbsd_kern_frame_saved_pc(frame);
++
+ if (PC_IN_CALL_DUMMY (frame->pc, 0, 0))
+ return generic_read_register_dummy (frame->pc, frame->frame,
+ PC_REGNUM);