summaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2011-03-18 18:45:30 +0000
committerPedro Alves <pedro@codesourcery.com>2011-03-18 18:45:30 +0000
commit401e962372671eb2ff085a18254ea74a156c67e5 (patch)
treecc109bf7bc2e0db1efedd0e752db3550f224d589 /gdb/frame.h
parentf86b56bf0dbd0ae8442aadc67aa63d3c78c57c1f (diff)
downloadgdb-401e962372671eb2ff085a18254ea74a156c67e5.tar.gz
gdb/
* frame.h (frame_unwind_caller_pc_if_available): Declare. * frame.c (frame_unwind_caller_pc_if_available): New. * stack.c (frame_info): Handle unavailable PC.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 25f20a944f7..7bc11480afd 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -562,6 +562,14 @@ extern void put_frame_register_bytes (struct frame_info *frame, int regnum,
extern CORE_ADDR frame_unwind_caller_pc (struct frame_info *frame);
+/* Same as frame_unwind_caller_pc, but returns a boolean indication of
+ whether the caller PC is determinable (when the PC is unavailable,
+ it will not be), instead of possibly throwing an error trying to
+ read unavailable memory or registers. */
+
+extern int frame_unwind_caller_pc_if_available (struct frame_info *this_frame,
+ CORE_ADDR *pc);
+
/* Discard the specified frame. Restoring the registers to the state
of the caller. */
extern void frame_pop (struct frame_info *frame);