OS << "Line table prologue:\n"
<< format(" total_length: 0x%0*" PRIx64 "\n", OffsetDumpWidth,
TotalLength)
+ << " format: " << dwarf::FormatString(FormParams.Format) << "\n"
<< format(" version: %u\n", getVersion());
if (!versionIsSupported(getVersion()))
return;
; DWARF-DUMP-NEXT: debug_line[0x00000000]
; DWARF-DUMP-NEXT: Line table prologue:
; DWARF-DUMP-NEXT: total_length: 0x0000005f
+; DWARF-DUMP-NEXT: format: DWARF32
; DWARF-DUMP-NEXT: version: 5
; DWARF-DUMP-NEXT: address_size: 4
; DWARF-DUMP-NEXT: seg_select_size: 0
# PART1: Line table prologue:
# PART1-NEXT: total_length: 0x0000002e
+# PART1-NEXT: format: DWARF32
# PART1-NEXT: version: 4
# PART1-NEXT: prologue_length: 0x00000028
# PART1: include_directories[ 1] = "Directory1"
# PART2: Line table prologue:
# PART2-NEXT: total_length: 0x00000028
+# PART2-NEXT: format: DWARF32
# PART2-NEXT: version: 4
# PART2-NEXT: prologue_length: 0x00000022
# PART2-NOT: prologue:
# CHECK-NEXT: debug_line[0x00000000]
# CHECK-NEXT: Line table prologue:
# CHECK-NEXT: total_length: 0x00000069
+# CHECK-NEXT: format: DWARF32
# CHECK-NEXT: version: 5
# CHECK-NEXT: address_size: 8
# CHECK-NEXT: seg_select_size: 0
# CHECK-NEXT: debug_line[0x0000006d]
# CHECK-NEXT: Line table prologue:
# CHECK-NEXT: total_length: 0x0000001b
+# CHECK-NEXT: format: DWARF32
# CHECK-NEXT: version: 4
# CHECK-NEXT: prologue_length: 0x00000015
# CHECK-NEXT: min_inst_length: 2
# CHECK-NEXT: warning: line table program with offset 0x00000000 has length 0xfffffffc but only 0x0000003a bytes are available
# CHECK-NEXT: Line table prologue:
# CHECK-NEXT: total_length: 0x00000000fffffff0
+# CHECK-NEXT: format: DWARF64
# CHECK-NEXT: version: 4
# CHECK-NEXT: prologue_length: 0x0000000000000016
# NONFATAL: debug_line[0x00000048]
# NONFATAL-NEXT: Line table prologue
# NONFATAL-NEXT: total_length: 0x00000002
+# NONFATAL-NEXT: format: DWARF32
# NONFATAL-NEXT: version: 0
# NONFATAL-NOT: prologue_length
# NONFATAL: debug_line[0x0000004e]
# NONFATAL-NEXT: Line table prologue
# NONFATAL-NEXT: total_length: 0x00000002
+# NONFATAL-NEXT: format: DWARF32
# NONFATAL-NEXT: version: 1
# NONFATAL-NOT: prologue_length