This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] DICOS doesn't need pc adjustment after break
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 6 Nov 2008 16:43:32 +0000
- Subject: [commit] DICOS doesn't need pc adjustment after break
[ With all the decr_pc_after_break talking going round ... ]
DICOS takes care of it. Fixed just like i386-nto-tdep.c does.
Checked in.
--
Pedro Alves
2008-11-06 Pedro Alves <pedro@codesourcery.com>
* i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
to 0.
---
gdb/i386-dicos-tdep.c | 4 ++++
1 file changed, 4 insertions(+)
Index: src/gdb/i386-dicos-tdep.c
===================================================================
--- src.orig/gdb/i386-dicos-tdep.c 2008-11-03 14:12:48.000000000 +0000
+++ src/gdb/i386-dicos-tdep.c 2008-11-06 16:24:25.000000000 +0000
@@ -58,6 +58,10 @@ i386_dicos_init_abi (struct gdbarch_info
dummy, so we put it on the stack. */
set_gdbarch_call_dummy_location (gdbarch, ON_STACK);
set_gdbarch_push_dummy_code (gdbarch, i386_dicos_push_dummy_code);
+
+ /* DICOS rewinds itself. Need to override the i386 default which is
+ to decrement the PC. */
+ set_gdbarch_decr_pc_after_break (gdbarch, 0);
}
/* Look in the elf symbol table of ABFD for a symbol named WANTED.