llvm-project/lldb
Greg Clayton b704b69e0b Make core files not crash when you load a core file into LLDB with just "lldb -c core".
To do this I added a few new ways to determine the OS from PT_NOTE notes in the ELF file:
1 - Look for "LINUX" notes which indicate "linux" should be the OS
2 - Look through the "CORE" notes with NT_FILE as the type and sniff data from the paths listed in this section. On Ubuntu they contain "/lib/x86_64-linux-gnu" which has the triple and allows us to set "linux" as the OS in the architecture returned from ObjectFileELF::GetArchitecture(). 

Setting the OS correctly allows us to get the triple correct so we can extract registers without asserting and killing LLDB.

Also use the data from the NT_FILE to set the main executable if one isn't set in ProcessElfCore::DoLoadCore().
 

llvm-svn: 251537
2015-10-28 18:04:38 +00:00
..
cmake Avoid using `..` in paths for include dirs. 2015-10-28 17:34:45 +00:00
docs Have debugserver send the OS version string plus 2015-08-12 03:27:33 +00:00
examples Fix tabs and spaces in one of the python files. 2015-10-26 16:51:36 +00:00
include Fix Clang-tidy modernize-use-nullptr warnings in some files in include/lldb/Core; other minor fixes. 2015-10-28 00:18:41 +00:00
lib Add initial gmake glue for the NetBSD platform 2015-10-24 01:28:24 +00:00
lit Create a check-lldb-unit target to run unit tests. 2015-03-13 20:55:07 +00:00
lldb.xcodeproj Don't codesign lldbserver if debugserver codesigning is disabled, because it 2015-10-28 17:14:27 +00:00
lldb.xcworkspace Working on getting the OSX build green 2015-05-12 02:20:27 +00:00
packages/Python/lldbsuite Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
resources Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00
scripts Add calls to the SB API to access the multi-language formatter category feature 2015-10-27 01:10:35 +00:00
source Make core files not crash when you load a core file into LLDB with just "lldb -c core". 2015-10-28 18:04:38 +00:00
test Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
third_party/Python/module Preparation for turning lldbsuite into a Python package. 2015-10-27 22:33:47 +00:00
tools Add Socket::Create factory method which uses socket protocol to find an appropriate implementation class. 2015-10-27 17:32:01 +00:00
unittests Fix a copy-and-paste error on new Editline test cmake configuration. 2015-10-25 21:54:56 +00:00
utils syncsource.py: a specific dir's source_excludes may now include the special entry "<no-defaults>". 2015-10-08 17:43:02 +00:00
www Support RHEL 7 and similar systems that use architecture-specific Python lib dirs 2015-10-12 20:12:27 +00:00
.arcconfig
.clang-format Update build instructions / coding conventions. 2015-03-10 23:22:25 +00:00
.gitignore Fix .gitignore to ignore symlinks. 2015-03-31 00:03:00 +00:00
CMakeLists.txt Fix Android build. 2015-10-07 00:01:06 +00:00
CODE_OWNERS.txt Convert CRLF to LF in CODE_OWNERS.txt 2015-03-23 14:00:54 +00:00
INSTALL.txt Revert the patch to Test Commit Access 2015-07-06 11:26:51 +00:00
LICENSE.TXT
Makefile Test commit 2015-07-22 08:41:18 +00:00
lldb.root Introduce a mechanism for reusing Python modules out of tree. 2015-10-20 21:05:57 +00:00
use_lldb_suite_root.py Preparation for turning lldbsuite into a Python package. 2015-10-27 22:33:47 +00:00