aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-06-28 00:05:14 +0000
committerDaniel Jacobowitz <drow@false.org>2009-06-28 00:05:14 +0000
commitc7ce8faacb57cd10f919caff6c5018c4526e752e (patch)
tree7faa96895297e983653ca7d7a842608504c71631 /gdb/stack.c
parentcd953ae9d0650069424e9a5e8652f3c77d02574b (diff)
downloadgdb-c7ce8faacb57cd10f919caff6c5018c4526e752e.zip
gdb-c7ce8faacb57cd10f919caff6c5018c4526e752e.tar.gz
gdb-c7ce8faacb57cd10f919caff6c5018c4526e752e.tar.bz2
* frame.c (frame_unwind_id): Renamed to ...
(frame_unwind_caller_id): ... this. All callers updated. (frame_pc_unwind): Renamed to ... (frame_unwind_caller_pc): ... this. All callers updated. * frame.h: Document frame_unwind_caller_WHAT functions. (frame_unwind_id): Renamed to ... (frame_unwind_caller_id): ... this. (frame_pc_unwind): Renamed to ... (frame_unwind_caller_pc): ... this. * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment. * stack.c (parse_frame_specification_1): Do not rely on frame_unwind_id.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 3a4cc7f..7d942d6 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -899,8 +899,16 @@ parse_frame_specification_1 (const char *frame_exp, const char *message,
{
if (frame_id_eq (id, get_frame_id (fid)))
{
- while (frame_id_eq (id, frame_unwind_id (fid)))
- fid = get_prev_frame (fid);
+ struct frame_info *prev_frame;
+
+ while (1)
+ {
+ prev_frame = get_prev_frame (fid);
+ if (!prev_frame
+ || !frame_id_eq (id, get_frame_id (prev_frame)))
+ break;
+ fid = prev_frame;
+ }
return fid;
}
}
@@ -1022,7 +1030,7 @@ frame_info (char *addr_exp, int from_tty)
puts_filtered ("; ");
wrap_here (" ");
printf_filtered ("saved %s ", pc_regname);
- fputs_filtered (paddress (frame_pc_unwind (fi)), gdb_stdout);
+ fputs_filtered (paddress (frame_unwind_caller_pc (fi)), gdb_stdout);
printf_filtered ("\n");
if (calling_frame_info == NULL)