diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-10-31 21:51:58 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-10-31 21:51:58 +0000 |
commit | 6f296f8fff5b106f20bf5334ac2d0aeadf1e8c8f (patch) | |
tree | bfb1667ab3a4807c21a5b50b2c7d29de9d72277b | |
parent | 618501c0e90f6dc9722bad60ce9043b95b0e491f (diff) | |
download | gdb-6f296f8fff5b106f20bf5334ac2d0aeadf1e8c8f.zip gdb-6f296f8fff5b106f20bf5334ac2d0aeadf1e8c8f.tar.gz gdb-6f296f8fff5b106f20bf5334ac2d0aeadf1e8c8f.tar.bz2 |
2004-10-31 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (mips_in_solib_return_trampoline): Delete.
(mips_gdbarch_init): Do not set same.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 35 |
2 files changed, 3 insertions, 35 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1add68..e84b70e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-10-31 Andrew Cagney <cagney@gnu.org> + * mips-tdep.c (mips_in_solib_return_trampoline): Delete. + (mips_gdbarch_init): Do not set same. + * arch-utils.c (generic_in_solib_call_trampoline): Delete. * arch-utils.h (generic_in_solib_call_trampoline): Delete. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 279509c..7ad78da 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4537,32 +4537,6 @@ mips_skip_trampoline_code (CORE_ADDR pc) return 0; /* not a stub */ } -/* Return non-zero if the PC is inside a return thunk (aka stub or - trampoline). */ - -static int -mips_in_solib_return_trampoline (CORE_ADDR pc, char *name) -{ - CORE_ADDR start_addr; - - /* Find the starting address of the function containing the PC. */ - if (find_pc_partial_function (pc, NULL, &start_addr, NULL) == 0) - return 0; - - /* If the PC is in __mips16_ret_{d,s}f, this is a return stub. */ - if (strcmp (name, "__mips16_ret_sf") == 0 - || strcmp (name, "__mips16_ret_df") == 0) - return 1; - - /* If the PC is in __mips16_call_stub_{s,d}f_{0..10} but not at the start, - i.e. after the jal instruction, this is effectively a return stub. */ - if (strncmp (name, "__mips16_call_stub_", 19) == 0 - && (name[19] == 's' || name[19] == 'd') && pc != start_addr) - return 1; - - return 0; /* not a stub */ -} - /* Convert a dbx stab register number (from `r' declaration) to a GDB [1 * NUM_REGS .. 2 * NUM_REGS) REGNUM. */ @@ -5058,15 +5032,6 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_skip_trampoline_code (gdbarch, mips_skip_trampoline_code); - /* NOTE drow/2004-02-11: We overload the core solib trampoline code - to support MIPS16. This is a bad thing. Make sure not to do it - if we have an OS ABI that actually supports shared libraries, since - shared library support is more important. If we have an OS someday - that supports both shared libraries and MIPS16, we'll have to find - a better place for these. */ - if (info.osabi == GDB_OSABI_UNKNOWN) - set_gdbarch_in_solib_return_trampoline (gdbarch, mips_in_solib_return_trampoline); - set_gdbarch_single_step_through_delay (gdbarch, mips_single_step_through_delay); /* Hook in OS ABI-specific overrides, if they have been registered. */ |