diff options
author | Pierre Muller <muller@sourceware.org> | 2010-06-25 07:32:25 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-06-25 07:32:25 +0000 |
commit | b1d61bc9d188010bf897f8155a76fb76ab99775f (patch) | |
tree | b4249b6c371e3891cdc8f2282c627512c0019368 | |
parent | ba761f19f5658feaff39b69c0bdc84b8716cd3f9 (diff) | |
download | gdb-b1d61bc9d188010bf897f8155a76fb76ab99775f.zip gdb-b1d61bc9d188010bf897f8155a76fb76ab99775f.tar.gz gdb-b1d61bc9d188010bf897f8155a76fb76ab99775f.tar.bz2 |
* c-typeprint.c (c_print_typedef): Append new type name for typedefs.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/c-typeprint.c | 3 |
2 files changed, 6 insertions, 1 deletions
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 <muller@ics.u-strasbg.fr> + + * c-typeprint.c (c_print_typedef): Append new type name for typedefs. + 2010-06-24 Joel Brobecker <brobecker@adacore.com> * 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"); } |