mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* 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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user