diff options
author | Tom Tromey <tromey@redhat.com> | 2011-10-17 14:04:37 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-10-17 14:04:37 +0000 |
commit | 0a07729b434b60abf73f562230109deb83c36eac (patch) | |
tree | 2baddd27f4d5e201016b2d1f0ded5c8d1bec8571 /gdb/gnu-v3-abi.c | |
parent | 21ae7a4d84e8fbd5c9723a7929ababe9ac57ec3a (diff) | |
download | gdb-0a07729b434b60abf73f562230109deb83c36eac.zip gdb-0a07729b434b60abf73f562230109deb83c36eac.tar.gz gdb-0a07729b434b60abf73f562230109deb83c36eac.tar.bz2 |
2011-10-17 Joost van der Sluis <joost@cnoc.nl>
* gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
type or "<unnamed type"> when there is no name assigned.
* gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
avoid a sigint when no name is assigned.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index 6c6f92c..92b73d3 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -319,7 +319,7 @@ gnuv3_rtti_type (struct value *value, || strncmp (vtable_symbol_name, "vtable for ", 11)) { warning (_("can't find linker symbol for virtual table for `%s' value"), - TYPE_NAME (values_type)); + TYPE_SAFE_NAME (values_type)); if (vtable_symbol_name) warning (_(" found `%s' instead"), vtable_symbol_name); return NULL; |