[DWARF] Fix typo, .gnu_index -> .gdb_index
authorFangrui Song <maskray@google.com>
Fri, 2 Nov 2018 20:34:40 +0000 (20:34 +0000)
committerFangrui Song <maskray@google.com>
Fri, 2 Nov 2018 20:34:40 +0000 (20:34 +0000)
llvm-svn: 346039

llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/test/DebugInfo/dwarfdump-dump-gdbindex.test

index a29c9c2..00e37d7 100644 (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);
   }
index cd5cd13..2ff13eb 100644 (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: