aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-04-21 04:28:08 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-04-21 04:28:08 +0000
commit96f7edbde8d07b273df95d3ae4c49e31d5cf8e29 (patch)
treee08b0269416bf3f1020c1d39cec4bb6a9e3bfb3f /gdb/cp-valprint.c
parent71b4de6fb868f6da4b0e99aad7547874cab797a5 (diff)
downloadgdb-96f7edbde8d07b273df95d3ae4c49e31d5cf8e29.zip
gdb-96f7edbde8d07b273df95d3ae4c49e31d5cf8e29.tar.gz
gdb-96f7edbde8d07b273df95d3ae4c49e31d5cf8e29.tar.bz2
* printcmd.c (print_command_1): Annotate the top-level expressions
that we print. (print_frame_args): Annotate each argument. * printcmd.c, defs.h (print_value_flags): New function. * cp-valprint.c (cp_print_value_fields): Annotate each field. * valprint.c (val_print_array_elements): Annotate each array element.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index c6e9b16..89a9eb2 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -276,11 +276,23 @@ cp_print_value_fields (type, valaddr, stream, format, recurse, pretty,
}
else
{
+ if (annotation_level > 1)
+ printf_filtered ("\n\032\032field-name-begin\n");
fprintf_symbol_filtered (stream, TYPE_FIELD_NAME (type, i),
language_cplus,
DMGL_PARAMS | DMGL_ANSI);
+ if (annotation_level > 1)
+ printf_filtered ("\n\032\032field-name-end\n");
fputs_filtered (" = ", stream);
}
+
+ if (annotation_level > 1)
+ {
+ printf_filtered ("\n\032\032field-begin ");
+ print_value_flags (TYPE_FIELD_TYPE (type, i));
+ printf_filtered ("\n");
+ }
+
if (TYPE_FIELD_PACKED (type, i))
{
value_ptr v;
@@ -313,7 +325,10 @@ cp_print_value_fields (type, valaddr, stream, format, recurse, pretty,
0, stream, format, 0, recurse + 1, pretty);
}
}
+ if (annotation_level > 1)
+ printf_filtered ("\n\032\032field-end\n");
}
+
if (pretty)
{
fprintf_filtered (stream, "\n");