From b1d61bc9d188010bf897f8155a76fb76ab99775f Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Fri, 25 Jun 2010 07:32:25 +0000 Subject: [PATCH] * c-typeprint.c (c_print_typedef): Append new type name for typedefs. --- gdb/ChangeLog | 4 ++++ gdb/c-typeprint.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 009c16a..a644848 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 d07fb8f..f7a305c 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"); } -- 2.7.4