aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-07-15 23:29:24 +0000
committerDaniel Jacobowitz <drow@false.org>2008-07-15 23:29:24 +0000
commiteb2f4a08ce0d53c30571ff4b7bd6d2f174376388 (patch)
tree5ad41cccca50dce4a025971c5da506455a3cd4ae /gdb/stack.c
parent680b56ce65a42446a86fc333ca4c735fc770386c (diff)
downloadgdb-eb2f4a08ce0d53c30571ff4b7bd6d2f174376388.zip
gdb-eb2f4a08ce0d53c30571ff4b7bd6d2f174376388.tar.gz
gdb-eb2f4a08ce0d53c30571ff4b7bd6d2f174376388.tar.bz2
Revert frame_unwind_caller_pc / frame_unwind_caller_id.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 7465fbf..18c4298 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -855,16 +855,8 @@ parse_frame_specification_1 (const char *frame_exp, const char *message,
{
if (frame_id_eq (id, get_frame_id (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;
- }
+ while (frame_id_eq (id, frame_unwind_id (fid)))
+ fid = get_prev_frame (fid);
return fid;
}
}
@@ -993,7 +985,7 @@ frame_info (char *addr_exp, int from_tty)
puts_filtered ("; ");
wrap_here (" ");
printf_filtered ("saved %s ", pc_regname);
- fputs_filtered (paddress (frame_unwind_caller_pc (fi)), gdb_stdout);
+ fputs_filtered (paddress (frame_pc_unwind (fi)), gdb_stdout);
printf_filtered ("\n");
if (calling_frame_info == NULL)