aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2004-12-13 05:07:23 +0000
committerJoel Brobecker <brobecker@gnat.com>2004-12-13 05:07:23 +0000
commita99b228b021abb8bafa15600b1d6a7057f938eeb (patch)
treeb52173bc63b08c726d3883f781f12f9d2956ce3f /gdb
parentacf86d5407207bccaec185adfd2c0bd33d110b79 (diff)
downloadgdb-a99b228b021abb8bafa15600b1d6a7057f938eeb.zip
gdb-a99b228b021abb8bafa15600b1d6a7057f938eeb.tar.gz
gdb-a99b228b021abb8bafa15600b1d6a7057f938eeb.tar.bz2
* alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
parameter name to make it clear that we already have a next frame. Return the sigcontext from that next frame instead of the frame following it.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/alpha-osf1-tdep.c9
2 files changed, 10 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index abed469..9acf55d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2004-12-01 Joel Brobecker <brobecker@gnat.com>
+
+ * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
+ parameter name to make it clear that we already have a next
+ frame. Return the sigcontext from that next frame instead
+ of the frame following it.
+
2004-12-13 Randolph Chung <tausq@debian.org>
* Makefile.in (pa64solib_h, somsolib_h): Delete.
diff --git a/gdb/alpha-osf1-tdep.c b/gdb/alpha-osf1-tdep.c
index b5879ad..d97f6c1 100644
--- a/gdb/alpha-osf1-tdep.c
+++ b/gdb/alpha-osf1-tdep.c
@@ -35,14 +35,11 @@ alpha_osf1_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
}
static CORE_ADDR
-alpha_osf1_sigcontext_addr (struct frame_info *frame)
+alpha_osf1_sigcontext_addr (struct frame_info *next_frame)
{
- struct frame_info *next_frame = get_next_frame (frame);
+ const struct frame_id next_id = get_frame_id (next_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));
+ return (read_memory_integer (next_id.stack_addr, 8));
}
static void