[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
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 14526 bytes
Desc: not available
More information about the lldb-commits