summaryrefslogtreecommitdiff
path: root/gdb/f-typeprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-06-21 18:01:46 +0000
committerTom Tromey <tromey@redhat.com>2010-06-21 18:01:46 +0000
commitd1d5e97967edf98a24d2013aa134d60f20a8042a (patch)
treeaf5267e2b8404b48546e493640baecf47eb06c3f /gdb/f-typeprint.c
parentfbe59e99d1b2795aed2fbf87b3b85f21a11036fe (diff)
downloadgdb-d1d5e97967edf98a24d2013aa134d60f20a8042a.tar.gz
* p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
* p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. * gdbtypes.h (TYPE_ERROR_NAME): New macro. * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. * dwarf2read.c (tag_type_to_type): Create a new error type on failure. * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
Diffstat (limited to 'gdb/f-typeprint.c')
-rw-r--r--gdb/f-typeprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c
index ff013d0b0ac..d35a255ae1c 100644
--- a/gdb/f-typeprint.c
+++ b/gdb/f-typeprint.c
@@ -312,7 +312,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show,
break;
case TYPE_CODE_ERROR:
- fprintfi_filtered (level, stream, "<unknown type>");
+ fprintfi_filtered (level, stream, "%s", TYPE_ERROR_NAME (type));
break;
case TYPE_CODE_RANGE: