[PATCH] D80523: [DebugInfo] Report the format of debug info tables.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 04:25:14 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6aed60c01c5a: [DebugInfo] Report the format of .debug_names [2/10] (authored by ikudrin).

Changed prior to commit:
  https://reviews.llvm.org/D80523?vs=267610&id=267843#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80523/new/

https://reviews.llvm.org/D80523

Files:
  llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
  llvm/test/DebugInfo/X86/dwarfdump-debug-names.s


Index: llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
===================================================================
--- llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
+++ llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
@@ -137,6 +137,7 @@
 # CHECK-NEXT: Name Index @ 0x0 {
 # CHECK-NEXT:   Header {
 # CHECK-NEXT:     Length: 0x60
+# CHECK-NEXT:     Format: DWARF32
 # CHECK-NEXT:     Version: 5
 # CHECK-NEXT:     CU count: 1
 # CHECK-NEXT:     Local TU count: 0
@@ -182,6 +183,7 @@
 # CHECK-NEXT: Name Index @ 0x64 {
 # CHECK-NEXT:   Header {
 # CHECK-NEXT:     Length: 0x44
+# CHECK-NEXT:     Format: DWARF32
 # CHECK-NEXT:     Version: 5
 # CHECK-NEXT:     CU count: 1
 # CHECK-NEXT:     Local TU count: 0
@@ -215,6 +217,7 @@
 # CHECK-NEXT: Name Index @ 0xac {
 # CHECK-NEXT:   Header {
 # CHECK-NEXT:     Length: 0x68
+# CHECK-NEXT:     Format: DWARF64
 # CHECK-NEXT:     Version: 5
 # CHECK-NEXT:     CU count: 1
 # CHECK-NEXT:     Local TU count: 1
Index: llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
===================================================================
--- llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
+++ llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
@@ -365,6 +365,7 @@
 void DWARFDebugNames::Header::dump(ScopedPrinter &W) const {
   DictScope HeaderScope(W, "Header");
   W.printHex("Length", UnitLength);
+  W.printString("Format", dwarf::FormatString(Format));
   W.printNumber("Version", Version);
   W.printNumber("CU count", CompUnitCount);
   W.printNumber("Local TU count", LocalTypeUnitCount);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80523.267843.patch
Type: text/x-patch
Size: 1554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/5801cae3/attachment.bin>


More information about the llvm-commits mailing list