aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-dicos-tdep.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-11-06 16:44:45 +0000
committerPedro Alves <palves@redhat.com>2008-11-06 16:44:45 +0000
commit48fb2d97d449042775ecd7c909c87b16c21d5322 (patch)
tree6932e03b2913421d3e2e988044aabfdc3e29ea46 /gdb/i386-dicos-tdep.c
parent8a2a2dbb65fba79fef988fb562ab5f95b18cb29d (diff)
downloadgdb-48fb2d97d449042775ecd7c909c87b16c21d5322.zip
gdb-48fb2d97d449042775ecd7c909c87b16c21d5322.tar.gz
gdb-48fb2d97d449042775ecd7c909c87b16c21d5322.tar.bz2
* i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
to 0.
Diffstat (limited to 'gdb/i386-dicos-tdep.c')
-rw-r--r--gdb/i386-dicos-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c
index 665377c..388972b 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.