aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-15 22:16:25 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-15 22:16:25 +0000
commitf18c5a73039533b1d9e2f4f2044ec39627bbf8b4 (patch)
treebdf028073b5d33bf857ec528aff113fc536f59b8 /gdb/stack.c
parentd9285969ae7ac75f10cdd4f6fc3c5ff5335133eb (diff)
downloadgdb-f18c5a73039533b1d9e2f4f2044ec39627bbf8b4.zip
gdb-f18c5a73039533b1d9e2f4f2044ec39627bbf8b4.tar.gz
gdb-f18c5a73039533b1d9e2f4f2044ec39627bbf8b4.tar.bz2
2002-11-15 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_pc_unwind): New function. (frame_saved_regs_pc_unwind): New function. (frame_register_unwind): Pass unwind_cache instead of register_unwind_cache. (set_unwind_by_pc): Add unwind_pc parameter, set. (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc. (get_prev_frame): Ditto. * frame.h (frame_pc_unwind_ftype): Declare. (struct frame_info): Add pc_unwind, pc_unwind_cache_p and pc_unwind_cache. Rename register_unwind_cache to unwind_cache. (frame_pc_unwind): Declare. * dummy-frame.c (dummy_frame_pc_unwind): New function. (struct dummy_frame): Add comment mentioning that values are for previous frame. * dummy-frame.h (dummy_frame_pc_unwind): Declare. * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind. (generic_file_frame_chain_valid): Ditto. * stack.c (frame_info): Ditto.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index b9a3033..ba7edd5 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -866,7 +866,7 @@ frame_info (char *addr_exp, int from_tty)
puts_filtered ("; ");
wrap_here (" ");
printf_filtered ("saved %s ", REGISTER_NAME (PC_REGNUM));
- print_address_numeric (FRAME_SAVED_PC (fi), 1, gdb_stdout);
+ print_address_numeric (frame_pc_unwind (fi), 1, gdb_stdout);
printf_filtered ("\n");
{