[DWARF] Fix typo, .gnu_index -> .gdb_index

llvm-svn: 346039
This commit is contained in:
Fangrui Song 2018-11-02 20:34:40 +00:00
parent 74d7430085
commit 6e9974cd28
2 changed files with 2 additions and 2 deletions

View File

@ -581,7 +581,7 @@ void DWARFContext::dump(
DObj->getStringDWOSection(), dwo_units(),
isLittleEndian(), getMaxDWOVersion());
if (shouldDump(Explicit, ".gnu_index", DIDT_ID_GdbIndex,
if (shouldDump(Explicit, ".gdb_index", DIDT_ID_GdbIndex,
DObj->getGdbIndexSection())) {
getGdbIndex().dump(OS);
}

View File

@ -10,7 +10,7 @@ RUN: llvm-dwarfdump -gdb-index %p/Inputs/dwarfdump-gdbindex-v7.elf-x86-64 | File
; gcc version 5.3.1 20160413, GNU gold (GNU Binutils for Ubuntu 2.26) 1.11
; Info about gdb-index: https://sourceware.org/gdb/onlinedocs/gdb/Index-Section-Format.html
; CHECK-LABEL: .gnu_index contents:
; CHECK-LABEL: .gdb_index contents:
; CHECK: Version = 7
; CHECK: CU list offset = 0x18, has 2 entries: