From: Pedro Alves Date: Thu, 6 Nov 2008 16:44:45 +0000 (+0000) Subject: * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48fb2d97d449042775ecd7c909c87b16c21d5322;p=binutils-gdb.git * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break to 0. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 48b0a6fe596..a251ae8d87a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-11-06 Pedro Alves + + * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break + to 0. + 2008-11-05 Pedro Alves * remote.c (notice_new_inferiors): Add a new inferior only when diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c index 665377cc36f..388972bef60 100644 --- a/gdb/i386-dicos-tdep.c +++ b/gdb/i386-dicos-tdep.c @@ -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.