diff options
author | Fred Fish <fnf@specifix.com> | 1993-03-11 17:44:39 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-03-11 17:44:39 +0000 |
commit | bd5d07d94c9a05601299885ae906ec2d6f000ba9 (patch) | |
tree | 2f6f4768ac5c148645c516212720566bec9602ba /gdb/c-typeprint.c | |
parent | 0b96ed0655e98bdbca122e06b420ac35181215ca (diff) | |
download | gdb-bd5d07d94c9a05601299885ae906ec2d6f000ba9.zip gdb-bd5d07d94c9a05601299885ae906ec2d6f000ba9.tar.gz 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/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 1740a06..16123af 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -151,8 +151,8 @@ cp_type_print_method_args (args, prefix, varstring, staticp, stream) { int i; - fputs_demangled (prefix, stream, DMGL_ANSI | DMGL_PARAMS); - fputs_demangled (varstring, stream, DMGL_ANSI | DMGL_PARAMS); + fputs_demangled (prefix, stream, DMGL_ANSI, language_cplus); + fputs_demangled (varstring, stream, DMGL_ANSI, language_cplus); fputs_filtered (" (", stream); if (args && args[!staticp] && args[!staticp]->code != TYPE_CODE_VOID) { |