forked from OSchip/llvm-project
[lldb] Improve identification of Linux core dumps. Fix for bug #30485.
Summary: ObjectFileELF::RefineModuleDetailsFromNote() identifies Linux core dumps by searching for library paths starting with /lib/x86_64-linux-gnu or /lib/i386-linux-gnu. This change widens the test to allow for linux installations which have addition directories in the path. Reviewers: ted, hhellyer, clayborg Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D25179 llvm-svn: 284114
This commit is contained in:
parent
833b8a2071
commit
a0c82e18d5
|
@ -1405,8 +1405,7 @@ ObjectFileELF::RefineModuleDetailsFromNote(lldb_private::DataExtractor &data,
|
|||
return error;
|
||||
}
|
||||
llvm::StringRef path(cstr);
|
||||
if (path.startswith("/lib/x86_64-linux-gnu") ||
|
||||
path.startswith("/lib/i386-linux-gnu")) {
|
||||
if (path.contains("/lib/x86_64-linux-gnu") || path.contains("/lib/i386-linux-gnu")) {
|
||||
arch_spec.GetTriple().setOS(llvm::Triple::OSType::Linux);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue