summaryrefslogtreecommitdiffstats
path: root/gdb/c-typeprint.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-06-25 07:32:25 +0000
committerPierre Muller <muller@sourceware.org>2010-06-25 07:32:25 +0000
commitb1d61bc9d188010bf897f8155a76fb76ab99775f (patch)
treeb4249b6c371e3891cdc8f2282c627512c0019368 /gdb/c-typeprint.c
parentba761f19f5658feaff39b69c0bdc84b8716cd3f9 (diff)
downloadppe42-binutils-b1d61bc9d188010bf897f8155a76fb76ab99775f.tar.gz
ppe42-binutils-b1d61bc9d188010bf897f8155a76fb76ab99775f.zip
* c-typeprint.c (c_print_typedef): Append new type name for typedefs.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r--gdb/c-typeprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index d07fb8f5dd..f7a305cead 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");
}
OpenPOWER on IntegriCloud