[Lldb-commits] [PATCH] 32-Bit Core Files
Dave Moore
symlink.sk at gmail.com
Mon Oct 28 11:23:42 PDT 2013
Hi mikesart,
Be kind, this is my first lldb submission. :)
This patch adds the ability to load core files created by 32-bit processes. It also touches the XSTATE handling so AVX and SSE registers are correctly reported on core load in 32/64-bit contexts.
RegisterContextCorePOSIX_x64 is replaced with RegisterContextPOSIXCore_x86, which handles both i386 and x64 variants.
Elf Core structures for linux are separated out into their own file; the 32-bit variants of the PRSTATUS and PRPSINFO structures (these have a different size based on the _WORDSIZE) are loaded using a table driven system.
http://llvm-reviews.chandlerc.com/D2038
Files:
source/Plugins/Process/POSIX/RegisterContextPOSIXProcessMonitor_x86.cpp
source/Plugins/Process/POSIX/RegisterContextPOSIX_x86.h
source/Plugins/Process/elf-core/CMakeLists.txt
source/Plugins/Process/elf-core/ElfCoreStructures.cpp
source/Plugins/Process/elf-core/ElfCoreStructures.h
source/Plugins/Process/elf-core/ProcessElfCore.cpp
source/Plugins/Process/elf-core/RegisterContextPOSIXCore_x86.cpp
source/Plugins/Process/elf-core/RegisterContextPOSIXCore_x86.h
source/Plugins/Process/elf-core/RegisterContextPOSIXCore_x86_64.cpp
source/Plugins/Process/elf-core/RegisterContextPOSIXCore_x86_64.h
source/Plugins/Process/elf-core/ThreadElfCore.cpp
source/Plugins/Process/elf-core/ThreadElfCore.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2038.1.patch
Type: text/x-patch
Size: 33571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20131028/37ae1c04/attachment.bin>
More information about the lldb-commits
mailing list