aboutsummaryrefslogtreecommitdiff
path: root/gdb/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/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/valprint.c')
-rw-r--r--gdb/valprint.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 999c9dd..55db346 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -625,7 +625,14 @@ val_print_array_elements (type, valaddr, address, stream, format, deref_ref,
++reps;
++rep1;
}
-
+
+ if (annotation_level > 1)
+ {
+ printf_filtered ("\n\032\032array-element-begin %d ", i);
+ print_value_flags (elttype);
+ printf_filtered ("\n");
+ }
+
if (reps > repeat_count_threshold)
{
val_print (elttype, valaddr + i * eltlen, 0, stream, format,
@@ -640,6 +647,8 @@ val_print_array_elements (type, valaddr, address, stream, format, deref_ref,
deref_ref, recurse + 1, pretty);
things_printed++;
}
+ if (annotation_level > 1)
+ printf_filtered ("\n\032\032array-element-end\n");
}
if (i < len)
{