[PATCH] D32492: [llvm-dwarfdump] - Change format for .gdb_index dump.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 11:04:03 PDT 2017


dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/DebugInfo/DWARF/DWARFGdbIndex.cpp:42
     OS << format(
-        "    Low address = 0x%llx, High address = 0x%llx, CU index = %d\n",
-        Addr.LowAddress, Addr.HighAddress, Addr.CuIndex);
+        "    Low/High address = [0x%llx, 0x%llx] (Size: 0x%llx), CU id = %d\n",
+        Addr.LowAddress, Addr.HighAddress, Addr.HighAddress - Addr.LowAddress,
----------------
While you're here, probably makes sense to fix the range to render as [x, y) rather than [x, y] ? (since it's a half open range, if I recall correctly)


https://reviews.llvm.org/D32492





More information about the llvm-commits mailing list