[Lldb-commits] [PATCH] D31131: [LLDB] OpenBSD support
Mark Kettenis via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Mar 19 16:51:21 PDT 2017
kettenis created this revision.
Herald added a subscriber: mgorny.
Add basic OpenBSD support. This is enough to be able to analyze core dumps for OpenBSD/amd64, but not much beyond that.
Note that part of the changes to source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp fix a bug that probably affects other platforms as well. The GetProgramHeaderByIndex() interface use 1-based indices, but in some case when looping over the headers the, the loop starts at 0 and misses the last header. This caused problems on OpenBSD since OpenBSD core dumps have the PT_NOTE segment as the last program header.
https://reviews.llvm.org/D31131
Files:
include/lldb/Host/Config.h
include/lldb/Host/Editline.h
include/lldb/Host/Host.h
include/lldb/Host/HostInfo.h
source/API/SystemInitializerFull.cpp
source/CMakeLists.txt
source/Host/CMakeLists.txt
source/Host/common/Host.cpp
source/Host/openbsd/Host.cpp
source/Host/openbsd/HostInfoOpenBSD.cpp
source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
source/Plugins/Platform/CMakeLists.txt
source/Plugins/Platform/OpenBSD/CMakeLists.txt
source/Plugins/Platform/OpenBSD/PlatformOpenBSD.cpp
source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h
source/Plugins/Process/Utility/CMakeLists.txt
source/Plugins/Process/Utility/RegisterContextOpenBSD_x86_64.cpp
source/Plugins/Process/Utility/RegisterContextOpenBSD_x86_64.h
source/Plugins/Process/elf-core/ProcessElfCore.cpp
source/Plugins/Process/elf-core/ThreadElfCore.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31131.92298.patch
Type: text/x-patch
Size: 35166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170319/f5e8e035/attachment-0001.bin>
More information about the lldb-commits
mailing list