]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lldb: workaround to permit cross-arch core file debugging
authorEd Maste <emaste@FreeBSD.org>
Tue, 17 Feb 2015 18:33:17 +0000 (18:33 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 17 Feb 2015 18:33:17 +0000 (18:33 +0000)
commitb153f37ffcefa028161d80c3852223dea7c93f4c
tree065db9f0d8a2ea1ff533f060977be2245e068962
parent1d4a49a324d6243fc4a2bddd5a19efa01e6c4b86
lldb: workaround to permit cross-arch core file debugging

FreeBSD core files have no section table and thus LLDB's OS and vendor
detection logic does not work. If we encounter such an ELF file, update
an unknown OS to match the host.

This is not really the correct way to handle this, but more extensive
rework of ObjectFileELF will be needed and this change restores cross-
arch core debugging until that can be completed.
contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp