aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-06-21 18:01:51 +0000
committerTom Tromey <tromey@redhat.com>2010-06-21 18:01:51 +0000
commitb00fdb78327b18ba0d4240724647bee58ff6b71e (patch)
treef06a4e33efde39bded42f8e1d518e2fc6904ded2 /gdb/p-valprint.c
parent84951ab5849cbb0cf00091eb8e9fe83c660fe1d6 (diff)
downloadgdb-b00fdb78327b18ba0d4240724647bee58ff6b71e.zip
gdb-b00fdb78327b18ba0d4240724647bee58ff6b71e.tar.gz
gdb-b00fdb78327b18ba0d4240724647bee58ff6b71e.tar.bz2
* 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/p-valprint.c')
-rw-r--r--gdb/p-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 3d00a69..4d39bed 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -540,7 +540,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr,
break;
case TYPE_CODE_ERROR:
- fprintf_filtered (stream, "<error type>");
+ fprintf_filtered (stream, "%s", TYPE_ERROR_NAME (type));
break;
case TYPE_CODE_UNDEF: