aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-04-06 00:07:06 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-04-06 00:07:06 +0000
commit9182c5bc256d7aee1964ce5b0cb9f93475713496 (patch)
tree6fd0741dccb6d65ac741d8884e34c59b6097463d /gdb/buildsym.c
parent50a57b541261953623a2742428a610a63fe602bd (diff)
downloadgdb-9182c5bc256d7aee1964ce5b0cb9f93475713496.zip
gdb-9182c5bc256d7aee1964ce5b0cb9f93475713496.tar.gz
gdb-9182c5bc256d7aee1964ce5b0cb9f93475713496.tar.bz2
gdb/
Fix regression of displaying the debug format. * buildsym.c (end_symtab): Set symtab's debugformat and producer from subfile.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 1b73884..31880b8 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1109,6 +1109,12 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
the symbols. */
symtab->language = subfile->language;
+ /* Save the debug format string (if any) in the symtab. */
+ symtab->debugformat = subfile->debugformat;
+
+ /* Similarly for the producer. */
+ symtab->producer = subfile->producer;
+
/* All symtabs for the main file and the subfiles share a
blockvector, so we need to clear primary for everything
but the main file. */