diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-13 15:54:58 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-13 15:54:58 +0000 |
commit | ef6e7e1393acc06ab23e1aba96396f39a3101add (patch) | |
tree | ba0339a87d9276dbfc5a2d5bb32bac04f5f5764f /gdb/hppa-hpux-tdep.c | |
parent | 61fbb938d653fed62f0c7d893b5f8e842fa7a09f (diff) | |
download | gdb-ef6e7e1393acc06ab23e1aba96396f39a3101add.zip gdb-ef6e7e1393acc06ab23e1aba96396f39a3101add.tar.gz gdb-ef6e7e1393acc06ab23e1aba96396f39a3101add.tar.bz2 |
2003-04-13 Andrew Cagney <cagney@redhat.com>
* frame.h: Mention what replaced what in "struct frame_info".
* hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
deprecated_update_frame_base_hack and
deprecated_update_frame_pc_hack.
* hppa-tdep.c: Ditto.
Diffstat (limited to 'gdb/hppa-hpux-tdep.c')
-rw-r--r-- | gdb/hppa-hpux-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index 1e1cb91..cc50e02 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -1,5 +1,6 @@ /* Target-dependent code for HPUX running on PA-RISC, for GDB. - Copyright 2002 Free Software Foundation, Inc. + + Copyright 2002, 2003 Free Software Foundation, Inc. This file is part of GDB. @@ -67,14 +68,14 @@ hppa_hpux_pc_in_sigtramp (CORE_ADDR pc, char *name) void hppa_hpux_frame_saved_pc_in_sigtramp (struct frame_info *fi, CORE_ADDR *tmp) { - *tmp = read_memory_integer (fi->frame + (43 * 4), 4); + *tmp = read_memory_integer (get_frame_base (fi) + (43 * 4), 4); } void hppa_hpux_frame_base_before_sigtramp (struct frame_info *fi, CORE_ADDR *tmp) { - *tmp = read_memory_integer (fi->frame + (40 * 4), 4); + *tmp = read_memory_integer (get_frame_base (fi) + (40 * 4), 4); } void @@ -82,7 +83,7 @@ hppa_hpux_frame_find_saved_regs_in_sigtramp (struct frame_info *fi, CORE_ADDR *fsr) { int i; - const CORE_ADDR tmp = (fi)->frame + (10 * 4); + const CORE_ADDR tmp = get_frame_base (fi) + (10 * 4); for (i = 0; i < NUM_REGS; i++) { |