diff options
author | Fred Fish <fnf@specifix.com> | 1992-05-06 21:16:11 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-05-06 21:16:11 +0000 |
commit | 55b3ef9a579d2a5475728f8e53f71923af896f23 (patch) | |
tree | 57025fdc4acd8e8cf0dba63f2ef43217a65ff8da /gdb/cplus-dem.c | |
parent | 32846f9c3e3714fcc88615c9f670850a5978354a (diff) | |
download | gdb-55b3ef9a579d2a5475728f8e53f71923af896f23.zip gdb-55b3ef9a579d2a5475728f8e53f71923af896f23.tar.gz gdb-55b3ef9a579d2a5475728f8e53f71923af896f23.tar.bz2 |
* cplus-dem.c (do_args): Handle void args the same as others.
* objfiles.c (free_objfile): Only try to unmap files when
reusable objfiles are supported.
* valprint.c (type_print_varspec_suffix): Add parameter that
specifies if C++ demangling included function arguments. Use
it to suppress printing extra pair of ()'s.
* valprint.c (type_print_1): Fix problem with printing demangled
C++ function types where demangled type includes the function
args.
Diffstat (limited to 'gdb/cplus-dem.c')
-rw-r--r-- | gdb/cplus-dem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c index ddd07e4..11d4e48 100644 --- a/gdb/cplus-dem.c +++ b/gdb/cplus-dem.c @@ -1114,7 +1114,7 @@ do_args (type, decl, work) if (PRINT_ARG_TYPES) string_append (decl, "("); - while (**type != '_' && **type != '\0' && **type != 'e' && **type != 'v') + while (**type != '_' && **type != '\0' && **type != 'e') { if (**type == 'N') { @@ -1149,9 +1149,7 @@ do_args (type, decl, work) } } - if (**type == 'v') - *type += 1; - else if (**type == 'e') + if (**type == 'e') { *type += 1; if (PRINT_ARG_TYPES) |