[PATCH] Add .eh_frame_hdr search to Linux unwinder.

Dan Albert danalbert at google.com
Fri Feb 27 13:27:57 PST 2015


Fix the base address for the unwind table.

Apparently this hadn't actually been working before. The header search was
failing, and then the seach was falling back to scanning the whole table.
Thanks to Saleem for noticing my mistake.

Unfortunately this means that we can't actually test this code directly. If it
fails to find the entry in the search table, it will still find it by scanning
the whole section. We should probably add some real unit tests to this project
at some point to deal with this.


http://reviews.llvm.org/D6848

Files:
  src/Unwind/AddressSpace.hpp
  src/Unwind/EHHeaderParser.hpp
  src/Unwind/UnwindCursor.hpp
  src/Unwind/config.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6848.20888.patch
Type: text/x-patch
Size: 11966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150227/15a2f0de/attachment.bin>


More information about the cfe-commits mailing list