* dwarf2-frame.c (clear_pointer_cleanup): New function.

(dwarf2_frame_cache): Use it.
	* frame-unwind.h (frame_sniffer_ftype): Document prologue
	cache initialization constraint.
This commit is contained in:
Tom Tromey
2012-08-06 19:20:43 +00:00
parent 2c12abee48
commit 78ac5f8316
3 changed files with 24 additions and 2 deletions

View File

@@ -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,