[Lldb-commits] [PATCH] D29095: Open ELF core dumps with more than 64K sections

Dave Bozier via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 27 07:54:44 PST 2017


davidb added inline comments.


================
Comment at: source/Plugins/ObjectFile/ELF/ELFHeader.cpp:108
+  if (ok) {
+    if (e_phnum_hdr == 0xFFFF)
+      e_phnum = section_zero.sh_info;
----------------
Would this make more sense to compare against a named constant ELF::PN_XNUM?


================
Comment at: source/Plugins/ObjectFile/ELF/ELFHeader.cpp:110
+      e_phnum = section_zero.sh_info;
+    if (e_shnum_hdr == 0)
+      e_shnum = section_zero.sh_size;
----------------
And this with SHN_UNDEF?


================
Comment at: source/Plugins/ObjectFile/ELF/ELFHeader.cpp:112
+      e_shnum = section_zero.sh_size;
+    if (e_shstrndx_hdr == 0xFFFF)
+      e_shstrndx = section_zero.sh_link;
----------------
and this with ELF::SHN_XINDEX.


https://reviews.llvm.org/D29095





More information about the lldb-commits mailing list