aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-08-20 22:10:15 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-08-20 22:10:15 +0000
commit018ab14f5986aba3e040eaf0d568b12315f87567 (patch)
treec6a00ae2f1702eb62db492fba0caed948528b948 /gdb/mipsread.c
parent0ca9bd1214f3f9c60845f60d958bddc3ae6e0734 (diff)
downloadgdb-018ab14f5986aba3e040eaf0d568b12315f87567.zip
gdb-018ab14f5986aba3e040eaf0d568b12315f87567.tar.gz
gdb-018ab14f5986aba3e040eaf0d568b12315f87567.tar.bz2
* mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):
Set language for psymtab and symtab. * mipsread.c (new_symbol): Set language and initialize demangled name for symbol. * symmisc.c (print_symbol): Use SYMBOL_SOURCE_NAME when printing the symbol type. * symtab.c (decode_line_1): Inhibit coredumps with cfront executables.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 1ac6f01..d6de6d1 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -2110,6 +2110,8 @@ parse_partial_symbols (objfile, section_offsets)
/* The way to turn this into a symtab is to call... */
pst->read_symtab = mipscoff_psymtab_to_symtab;
+ psymtab_language = deduce_language_from_filename (fdr_name (fh));
+
pst->texthigh = pst->textlow;
/* For stabs-in-ecoff files, the second symbol must be @stab.
@@ -2745,6 +2747,8 @@ psymtab_to_symtab_1 (pst, filename)
st = new_symtab (pst->filename, 2 * f_max, maxlines, pst->objfile);
}
+ psymtab_language = st->language;
+
lines = LINETABLE (st);
pending_list = PST_PRIVATE (pst)->pending_list;
if (pending_list == 0)
@@ -3344,6 +3348,8 @@ new_symbol (name)
memset ((PTR) s, 0, sizeof (*s));
SYMBOL_NAME (s) = name;
+ SYMBOL_LANGUAGE (s) = psymtab_language;
+ SYMBOL_INIT_DEMANGLED_NAME (s, &current_objfile->symbol_obstack);
return s;
}