* 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.
This commit is contained in:
Jim Kingdon
1994-04-21 04:28:08 +00:00
parent 71b4de6fb8
commit 96f7edbde8
5 changed files with 88 additions and 1 deletions

View File

@@ -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");