aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-osf1-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-06-04 05:20:55 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-06-04 05:20:55 +0000
commit37bb6d9f02321e57419d487a7ce47d4174b22bd5 (patch)
treef9d2536c1cef287db3d1d92b7968d1042f9db599 /gdb/alpha-osf1-tdep.c
parent852ee05c45d172bc2c9f54e839248a6059581a5a (diff)
downloadgdb-37bb6d9f02321e57419d487a7ce47d4174b22bd5.zip
gdb-37bb6d9f02321e57419d487a7ce47d4174b22bd5.tar.gz
gdb-37bb6d9f02321e57419d487a7ce47d4174b22bd5.tar.bz2
* alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
references to struct frame_info fields by calls to the equivalent accessors. Necessary now that frame_info is opaque.
Diffstat (limited to 'gdb/alpha-osf1-tdep.c')
-rw-r--r--gdb/alpha-osf1-tdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/alpha-osf1-tdep.c b/gdb/alpha-osf1-tdep.c
index 29b5c08..8cd112d 100644
--- a/gdb/alpha-osf1-tdep.c
+++ b/gdb/alpha-osf1-tdep.c
@@ -37,8 +37,12 @@ alpha_osf1_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
static CORE_ADDR
alpha_osf1_sigcontext_addr (struct frame_info *frame)
{
- return (read_memory_integer (frame->next ? frame->next->frame
- : frame->frame, 8));
+ struct frame_info *next_frame = get_next_frame (frame);
+
+ if (next_frame != NULL)
+ return (read_memory_integer (get_frame_base (next_frame), 8));
+ else
+ return (read_memory_integer (get_frame_base (frame), 8));
}
/* This is the definition of CALL_DUMMY_ADDRESS. It's a heuristic that is used