[Lldb-commits] [PATCH] D22917: Add/fix support for i386 elf core files

Dimitar Vlahovski via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 28 08:17:02 PDT 2016

dvlahovski created this revision.
dvlahovski added a reviewer: labath.
dvlahovski added a subscriber: lldb-commits.

There were places in the code, assuming(hardcoding) offsets
and types that were only valid for the x86_64 elf core file format.

The NT_PRSTATUS and NT_PRPSINFO structures are with the 64 bit layout.
I have reused them and parse i386 files manually, and fill them in the
same struct.

Also added some error handling during parsing that checks if the
available bytes in the buffer are enough to fill the structures.

The i386 core file test case now passes.

For reference on the structures layout, I generally used the
source of binutils (bfd, readelf)

Bug: https://llvm.org/bugs/show_bug.cgi?id=26947



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22917.65937.patch
Type: text/x-patch
Size: 14526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160728/dc7f3510/attachment.bin>

More information about the lldb-commits mailing list