PATCH COMMITTED: Fix readelf --debug=frames-interp with DW_CFA_restore

Ian Lance Taylor iant@google.com
Fri Oct 28 18:30:00 GMT 2011
When using readelf --debug=frames-interp, if the code saw a
DW_CFA_restore, and the register was not mentioned in the CIE, it would
be dropped from the table entirely.  This led to confusing output in
which not all columns were listed and the ones that were sometimes
showed the wrong value.  This patch fixes the problem in the obvious
way.  I didn't see any tests for this functionality, and I didn't add
any.  Committed to mainline as obvious.

Ian


2011-10-28  Ian Lance Taylor  <iant@google.com>

	* dwarf.c (display_debug_frames): If do_debug_frames_interp,
	DW_CFA_restore goes to DW_CFA_undefined, not DW_CFA_unreferenced.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 597 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20111028/2718726a/attachment.bin>


More information about the Binutils mailing list