aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
diff options
context:
space:
mode:
authorDimitar Vlahovski <dvlahovski@google.com>2016-07-29 13:18:09 +0000
committerDimitar Vlahovski <dvlahovski@google.com>2016-07-29 13:18:09 +0000
commit023dd64f256a3762569aca994f0ac0d12dbfeb31 (patch)
treec11671c55b225fba793020d350c946481a8e9a5c /lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
parente768c4b858bd32b814baf142dd2acfeae6022638 (diff)
downloadllvm-023dd64f256a3762569aca994f0ac0d12dbfeb31.zip
llvm-023dd64f256a3762569aca994f0ac0d12dbfeb31.tar.gz
llvm-023dd64f256a3762569aca994f0ac0d12dbfeb31.tar.bz2
Add/fix support for i386 elf core files
Summary: 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 Reviewers: labath Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D22917 llvm-svn: 277140
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp')
0 files changed, 0 insertions, 0 deletions