diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-01-28 11:14:37 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-01-28 11:14:37 -0800 |
commit | 5046f3c8c0cf0a641f25cf0b3f6e3a6969f28dd8 (patch) | |
tree | 8da64e4dd784788c5e5d442caa777ef6ff646858 /gdb/i386-fbsd-tdep.c | |
parent | bf84b776bda0945300f40432580156af99c000f6 (diff) | |
download | fsf-binutils-gdb-5046f3c8c0cf0a641f25cf0b3f6e3a6969f28dd8.zip fsf-binutils-gdb-5046f3c8c0cf0a641f25cf0b3f6e3a6969f28dd8.tar.gz fsf-binutils-gdb-5046f3c8c0cf0a641f25cf0b3f6e3a6969f28dd8.tar.bz2 |
FreeBSD x86: Remove fallback for detecting signal trampolines by address.
A few FreeBSD releases did not include the page holding the signal
code in core dumps. As a workaround, a sysctl was used to fetch the
default location of the signal code instead. The youngest affected
FreeBSD release is 10.1 released in November 2014 and EOLed in
December 2016. The fallback only works for native processes and would
require a separate unwinder once the FreeBSD arches are converted to
use tramp_frame for signal frames.
Diffstat (limited to 'gdb/i386-fbsd-tdep.c')
-rw-r--r-- | gdb/i386-fbsd-tdep.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c index 8c19b44..c3f02d1 100644 --- a/gdb/i386-fbsd-tdep.c +++ b/gdb/i386-fbsd-tdep.c @@ -122,10 +122,6 @@ static int i386fbsd_r_reg_offset[] = 2 * 4, 1 * 4, 0 * 4, 18 * 4 /* %ds, %es, %fs, %gs */ }; -/* Sigtramp routine location. */ -CORE_ADDR i386fbsd_sigtramp_start_addr; -CORE_ADDR i386fbsd_sigtramp_end_addr; - /* From <machine/signal.h>. */ int i386fbsd_sc_reg_offset[] = { @@ -292,10 +288,6 @@ i386fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->sigtramp_p = i386fbsd_sigtramp_p; - /* FreeBSD uses a different memory layout. */ - tdep->sigtramp_start = i386fbsd_sigtramp_start_addr; - tdep->sigtramp_end = i386fbsd_sigtramp_end_addr; - /* FreeBSD has a more complete `struct sigcontext'. */ tdep->sc_reg_offset = i386fbsd_sc_reg_offset; tdep->sc_num_regs = ARRAY_SIZE (i386fbsd_sc_reg_offset); |