aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame-unwind.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-06 19:20:43 +0000
committerTom Tromey <tromey@redhat.com>2012-08-06 19:20:43 +0000
commit78ac5f831692f70b841044961069e50d4ba6a76f (patch)
treefc00459db02ecf2d58564f4defadaae75bc72b25 /gdb/frame-unwind.h
parent2c12abee48e5615dd8573bbafd1b8a167967147d (diff)
downloadfsf-binutils-gdb-78ac5f831692f70b841044961069e50d4ba6a76f.zip
fsf-binutils-gdb-78ac5f831692f70b841044961069e50d4ba6a76f.tar.gz
fsf-binutils-gdb-78ac5f831692f70b841044961069e50d4ba6a76f.tar.bz2
* dwarf2-frame.c (clear_pointer_cleanup): New function.
(dwarf2_frame_cache): Use it. * frame-unwind.h (frame_sniffer_ftype): Document prologue cache initialization constraint.
Diffstat (limited to 'gdb/frame-unwind.h')
-rw-r--r--gdb/frame-unwind.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/frame-unwind.h b/gdb/frame-unwind.h
index f82d763..aa58640 100644
--- a/gdb/frame-unwind.h
+++ b/gdb/frame-unwind.h
@@ -44,7 +44,9 @@ struct value;
/* Given THIS frame, take a whiff of its registers (namely
the PC and attributes) and if SELF is the applicable unwinder,
- return non-zero. Possibly also initialize THIS_PROLOGUE_CACHE. */
+ return non-zero. Possibly also initialize THIS_PROLOGUE_CACHE; but
+ only if returning 1. Initializing THIS_PROLOGUE_CACHE in other
+ cases (0 return, or exception) is invalid. */
typedef int (frame_sniffer_ftype) (const struct frame_unwind *self,
struct frame_info *this_frame,