aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-osf1-tdep.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-26 01:08:19 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-26 01:08:19 +0000
commitaccc6d1ff368635135fb961397da748a4505008c (patch)
tree9e67a682a1462c55bb84208a36c39a7b38d9d03a /gdb/alpha-osf1-tdep.c
parentd5ba2a0169386af2ecd2e678876297ee4bee61da (diff)
downloadgdb-accc6d1ff368635135fb961397da748a4505008c.zip
gdb-accc6d1ff368635135fb961397da748a4505008c.tar.gz
gdb-accc6d1ff368635135fb961397da748a4505008c.tar.bz2
* 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.
Diffstat (limited to 'gdb/alpha-osf1-tdep.c')
-rw-r--r--gdb/alpha-osf1-tdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/alpha-osf1-tdep.c b/gdb/alpha-osf1-tdep.c
index cba9134..be8f704 100644
--- a/gdb/alpha-osf1-tdep.c
+++ b/gdb/alpha-osf1-tdep.c
@@ -52,6 +52,9 @@ alpha_osf1_init_abi (struct gdbarch_info info,
set_gdbarch_pc_in_sigtramp (gdbarch, alpha_osf1_pc_in_sigtramp);
tdep->skip_sigtramp_frame = alpha_osf1_skip_sigtramp_frame;
+
+ tdep->jb_pc = 2;
+ tdep->jb_elt_size = 8;
}
void