* i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
authorPedro Alves <palves@redhat.com>
Thu, 6 Nov 2008 16:44:45 +0000 (16:44 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 6 Nov 2008 16:44:45 +0000 (16:44 +0000)
to 0.

gdb/ChangeLog
gdb/i386-dicos-tdep.c

index 48b0a6fe59690b535e2293de552126726fe520a2..a251ae8d87adc9f2477bf6e6f107dce61b839e2d 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-06  Pedro Alves  <pedro@codesourcery.com>
+
+       * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
+       to 0.
+
 2008-11-05  Pedro Alves  <pedro@codesourcery.com>
 
        * remote.c (notice_new_inferiors): Add a new inferior only when
index 665377cc36f61debe8066a12e778e432b35f9d69..388972bef60d594a0c6535742fd9a2556ce7c32c 100644 (file)
@@ -58,6 +58,10 @@ i386_dicos_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
      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.