This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold][patch] Add .debug_types to list of known gdb sections
- From: Cary Coutant <ccoutant at google dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Ian Lance Taylor <iant at google dot com>
- Date: Fri, 18 Jun 2010 15:45:37 -0700
- Subject: [gold][patch] Add .debug_types to list of known gdb sections
The --strip-debug-gdb option currently strips the .debug_types
section, but shouldn't. This trivial patch adds it to the list of
sections to keep with this option. (I also added it, commented out, to
the list of sections to keep for --strip-debug-lines.)
OK?
-cary
diff --git a/gold/layout.cc b/gold/layout.cc
index a39b115..9310961 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -243,6 +243,7 @@ static const char* gdb_sections[] =
// ".debug_aranges", // not used by gdb as of 6.7.1
".debug_frame",
".debug_info",
+ ".debug_types",
".debug_line",
".debug_loc",
".debug_macinfo",
@@ -256,6 +257,7 @@ static const char* lines_only_debug_sections[] =
// ".debug_aranges", // not used by gdb as of 6.7.1
// ".debug_frame",
".debug_info",
+ // ".debug_types",
".debug_line",
// ".debug_loc",
// ".debug_macinfo",