aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-24 06:24:51 +0000
committerFred Fish <fnf@specifix.com>1992-06-24 06:24:51 +0000
commitb4cc55b53353d83f131f1eaa26d0dadc94b19ebf (patch)
tree341f815f71186bec697946eb1957487214d8896f
parentf54e9fd84f56567255e8e6c04d3aaf4368fd7c4b (diff)
downloadgdb-b4cc55b53353d83f131f1eaa26d0dadc94b19ebf.zip
gdb-b4cc55b53353d83f131f1eaa26d0dadc94b19ebf.tar.gz
gdb-b4cc55b53353d83f131f1eaa26d0dadc94b19ebf.tar.bz2
* valprint.c (val_print_fields): Call fprint_symbol to get
automatic C++ demangling for mangled field names.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/valprint.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4a4ddda..6aaec86 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -24,6 +24,8 @@ Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
ptrace().
* cadillac.c (kernel_dispatch): Make return type void.
* cadillac.c (iosig): Signal handlers take one int arg.
+ * valprint.c (val_print_fields): Call fprint_symbol to get
+ automatic C++ demangling for mangled field names.
Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 8f1262d..7a6da40 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -539,14 +539,14 @@ val_print_fields (type, valaddr, stream, format, recurse, pretty, dont_print)
fputs_filtered ("\"( ptr \"", stream);
else
fputs_filtered ("\"( nodef \"", stream);
- fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
+ fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
fputs_filtered ("\" \"", stream);
- fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
+ fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
fputs_filtered ("\") \"", stream);
}
else
{
- fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
+ fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
fputs_filtered (" = ", stream);
}
if (TYPE_FIELD_PACKED (type, i))