This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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  <>

	* 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]