From: Pierre Muller Date: Fri, 25 Jun 2010 07:32:25 +0000 (+0000) Subject: * c-typeprint.c (c_print_typedef): Append new type name for typedefs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1d61bc9d188010bf897f8155a76fb76ab99775f;p=binutils-gdb.git * c-typeprint.c (c_print_typedef): Append new type name for typedefs. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 009c16a52bc..a644848496d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-06-25 Pierre Muller + + * c-typeprint.c (c_print_typedef): Append new type name for typedefs. + 2010-06-24 Joel Brobecker * python/python.c (_initialize_python): Add new "constant" diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index d07fb8f5dd6..f7a305cead0 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -107,7 +107,8 @@ c_print_typedef (struct type *type, struct symbol *new_symbol, type_print (type, "", stream, 0); if (TYPE_NAME ((SYMBOL_TYPE (new_symbol))) == 0 || strcmp (TYPE_NAME ((SYMBOL_TYPE (new_symbol))), - SYMBOL_LINKAGE_NAME (new_symbol)) != 0) + SYMBOL_LINKAGE_NAME (new_symbol)) != 0 + || TYPE_CODE (SYMBOL_TYPE (new_symbol)) == TYPE_CODE_TYPEDEF) fprintf_filtered (stream, " %s", SYMBOL_PRINT_NAME (new_symbol)); fprintf_filtered (stream, ";\n"); }