aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-03-11 17:44:39 +0000
committerFred Fish <fnf@specifix.com>1993-03-11 17:44:39 +0000
commitbd5d07d94c9a05601299885ae906ec2d6f000ba9 (patch)
tree2f6f4768ac5c148645c516212720566bec9602ba /gdb/symtab.c
parent0b96ed0655e98bdbca122e06b420ac35181215ca (diff)
downloadfsf-binutils-gdb-bd5d07d94c9a05601299885ae906ec2d6f000ba9.zip
fsf-binutils-gdb-bd5d07d94c9a05601299885ae906ec2d6f000ba9.tar.gz
fsf-binutils-gdb-bd5d07d94c9a05601299885ae906ec2d6f000ba9.tar.bz2
* utils.c (fputs_demangled): Complete rewrite to clean up and
add a language parameter that is used to select the demangling algorithm. * defs.h (enum language): Move further up in file so enum can be used in prototypes. * defs.h (fputs_demangled): Update prototype to add lang arg. * c-typeprint.c (cp_type_print_method_args): Add language arg to fputs_demangled calls, remove DMGL_PARAMS flag. * stack.c (print_frame_info): Remove obsolete code so we don't have to update fputs_demangled usage in it. * stack.c (print_frame_info, frame_info): Add language variable to pass to fputs_demangled and initialize it from the symbol's language. Call fputs_demangled with language arg. * symtab.c (find_methods): Add language arg to fputs_demangled call.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 328679c..c31d7b6 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1389,7 +1389,8 @@ find_methods (t, name, sym_arr)
else
{
fputs_filtered("(Cannot find method ", stdout);
- fputs_demangled(phys_name, stdout, DMGL_PARAMS);
+ fputs_demangled(phys_name, stdout, DMGL_PARAMS,
+ language_cplus);
fputs_filtered(" - possibly inlined.)\n", stdout);
}
}