diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-06-18 17:31:34 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-06-18 17:31:34 +0000 |
commit | a9b8d892d692b8420b1803ee92b2de4fe9fdaf5f (patch) | |
tree | c2a29aed1d0e59605cdae98a432e32f3db987ed2 /gdb/i386-dicos-tdep.c | |
parent | e2e4d78b2216962789c8a982d3e889ba6933321a (diff) | |
download | gdb-a9b8d892d692b8420b1803ee92b2de4fe9fdaf5f.zip gdb-a9b8d892d692b8420b1803ee92b2de4fe9fdaf5f.tar.gz gdb-a9b8d892d692b8420b1803ee92b2de4fe9fdaf5f.tar.bz2 |
gdb/
Switch i386 and derived targets to ON_STACK.
* amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
(amd64_dicos_init_abi): Remove its installment.
* dicos-tdep.c (dicos_init_abi): Remove the
set_gdbarch_call_dummy_location call. Update the comment here.
* i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
(i386_dicos_init_abi): Remove its installment.
* i386-tdep.c (i386_push_dummy_code): New function.
(i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
i386_push_dummy_code.
Diffstat (limited to 'gdb/i386-dicos-tdep.c')
-rw-r--r-- | gdb/i386-dicos-tdep.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c index 8039c90..ca37673 100644 --- a/gdb/i386-dicos-tdep.c +++ b/gdb/i386-dicos-tdep.c @@ -22,32 +22,12 @@ #include "gdb_string.h" #include "dicos-tdep.h" -static CORE_ADDR -i386_dicos_push_dummy_code (struct gdbarch *gdbarch, - CORE_ADDR sp, CORE_ADDR funaddr, - struct value **args, int nargs, - struct type *value_type, - CORE_ADDR *real_pc, CORE_ADDR *bp_addr, - struct regcache *regcache) -{ - int bplen; - CORE_ADDR bppc = sp; - - gdbarch_breakpoint_from_pc (gdbarch, &bppc, &bplen); - *bp_addr = sp - bplen; - *real_pc = funaddr; - - return *bp_addr; -} - static void i386_dicos_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); dicos_init_abi (gdbarch); - - set_gdbarch_push_dummy_code (gdbarch, i386_dicos_push_dummy_code); } static enum gdb_osabi |