[Lldb-commits] [PATCH] D45628: [LLDB] Support compressed debug info sections (.zdebug*)

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 13 16:50:53 PDT 2018


davide added inline comments.


================
Comment at: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp:1773-1781
+static SectionType getSectionType(llvm::StringRef section_name) {
+  llvm::StringRef mapped_name;
+  if (section_name.startswith(".zdebug")) {
+    mapped_name = section_name.drop_front(2);
+  } else if (!section_name.startswith(".")) {
+    return eSectionTypeOther;
+  } else {
----------------
Thanks! This was exactly what I had in mind. Do you mind to split the NFC changes into a separate patch (that can be committed without review)? This will make this patch much easier to review.


https://reviews.llvm.org/D45628





More information about the lldb-commits mailing list