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.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 361 Build 361: arc lint + arc unit
Event Timeline
Comment Actions
More information, including readelf output from the dump, in the bugzilla here: https://llvm.org/bugs/show_bug.cgi?id=30485
Comment Actions
The change seems unlikely to pick up many false positives and core dumps from the type of system described in the bug are only going to get more common.
Comment Actions
Use "llvm::StringRef::contains". See inline comment.
source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | ||
---|---|---|
1408–1409 | I believe Zach Turner added a "contains" function to StringRef which we should use here: if (path.contains("/lib/x86_64-linux-gnu") || path.contains("/lib/i386-linux-gnu")) { |
Comment Actions
Thanks, that's nicer. I did have a look for a 'contains()' method, but it has not made it into the docs yet.
http://llvm.org/docs/doxygen/html/classllvm_1_1StringRef.html
I believe Zach Turner added a "contains" function to StringRef which we should use here: