From accc6d1ff368635135fb961397da748a4505008c Mon Sep 17 00:00:00 2001 From: Jason Thorpe Date: Fri, 26 Apr 2002 01:08:19 +0000 Subject: * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members. * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize tdep->jb_pc and tdep->jb_elt_size. * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise. * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise. * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise. * alpha-nat.c (get_longjmp_target): Remove. (JB_ELEMENT_SIZE): Ditto. (JB_PC): Ditto. * alpha-tdep.c (alpha_get_longjmp_target): New function. (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target to alpha_get_longjmp_target. (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size. * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove. * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove. --- gdb/alpha-tdep.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/alpha-tdep.h') diff --git a/gdb/alpha-tdep.h b/gdb/alpha-tdep.h index a9a724d..8b1cf3e 100644 --- a/gdb/alpha-tdep.h +++ b/gdb/alpha-tdep.h @@ -105,6 +105,11 @@ struct gdbarch_tdep /* If FRAME refers to a sigtramp frame, return the address of the next frame. */ CORE_ADDR (*skip_sigtramp_frame) (struct frame_info *, CORE_ADDR); + + int jb_pc; /* Offset to PC value in jump buffer. + If htis is negative, longjmp support + will be disabled. */ + size_t jb_elt_size; /* And the size of each entry in the buf. */ }; void alpha_software_single_step (enum target_signal, int); -- cgit v1.1