[Lldb-commits] [PATCH] D42488: Remove ObjectFile usage from HostLinux::GetProcessInfo
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 25 02:04:28 PST 2018
labath updated this revision to Diff 131401.
labath added a comment.
This revision is now accepted and ready to land.
Ok, so the issue was a subsequent MergeFrom(HostArchitecture) call which was
overwriting the invalid ArchSpec I was returning here. I think this was present
there to fill in the bits we could not get from the ObjectFile (like some
environment details). Since now I am returning the ArchSpec I get from HostInfo,
the merge will become a no-op in the success case and produce garbage in case
the detection fails -- so I just remove the merge call.
https://reviews.llvm.org/D42488
Files:
include/lldb/Host/common/NativeProcessProtocol.h
include/lldb/Utility/ArchSpec.h
source/Host/CMakeLists.txt
source/Host/common/NativeProcessProtocol.cpp
source/Host/linux/Host.cpp
source/Plugins/Process/Linux/NativeProcessLinux.cpp
source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
source/Utility/ArchSpec.cpp
unittests/Host/linux/HostTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42488.131401.patch
Type: text/x-patch
Size: 11646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180125/fb490b7d/attachment-0001.bin>
More information about the lldb-commits
mailing list