summaryrefslogtreecommitdiff
path: root/gdb/alpha-osf1-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-05-09 03:58:26 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-05-09 03:58:26 +0000
commit198a5b37e2b8b87e1a07a01d69e15869ce789277 (patch)
tree0464de62ba11808bf113ce5813e03fd0440ffb83 /gdb/alpha-osf1-tdep.c
parentda247b0fc1f5def71aa150dbe7fc5ed12a5ba766 (diff)
downloadgdb-198a5b37e2b8b87e1a07a01d69e15869ce789277.tar.gz
* alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
Update for unwinder changes.
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 226a8bd7fc3..1ae02e84615 100644
--- a/gdb/alpha-osf1-tdep.c
+++ b/gdb/alpha-osf1-tdep.c
@@ -33,9 +33,13 @@ alpha_osf1_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
}
static CORE_ADDR
-alpha_osf1_sigcontext_addr (struct frame_info *next_frame)
+alpha_osf1_sigcontext_addr (struct frame_info *this_frame)
{
- const struct frame_id next_id = get_frame_id (next_frame);
+ struct frame_info *next_frame = get_next_frame (this_frame);
+ struct frame_id next_id = null_frame_id;
+
+ if (next_frame != NULL)
+ next_id = get_frame_id (next_frame);
return (read_memory_integer (next_id.stack_addr, 8));
}