aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-04-22 03:01:25 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-04-22 03:01:25 +0000
commitda988c201333d11b7133e12387f833b55f575904 (patch)
treeb44e77d548f5b04fb1747a316d487ea950cfc95d /gdb/cp-valprint.c
parenteb1e37a3ae5a73f72572bd01f78282530b325fea (diff)
downloadgdb-da988c201333d11b7133e12387f833b55f575904.zip
gdb-da988c201333d11b7133e12387f833b55f575904.tar.gz
gdb-da988c201333d11b7133e12387f833b55f575904.tar.bz2
* utils.c (prompt_for_continue): Annotate prompt.
(query): Annotate query. * printcmd.c (print_frame_args): Change syntax of argument annotation to make name and value part of a single group of annotations, not two separate groups. * cp-valprint.c (cp_print_value_fields): Likewise for fields. * valprint.c (val_print_array_elements): Change syntax of annotation to be more concise. * main.c, defs.h (command_line_input): New argument tells what string to include in the annotations. * symtab.c (decode_line_2), main.c (read_command_lines, command_loop): Change callers.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 89a9eb2..0346c03 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -277,20 +277,20 @@ cp_print_value_fields (type, valaddr, stream, format, recurse, pretty,
else
{
if (annotation_level > 1)
- printf_filtered ("\n\032\032field-name-begin\n");
+ {
+ printf_filtered ("\n\032\032field-begin ");
+ print_value_flags (TYPE_FIELD_TYPE (type, i));
+ printf_filtered ("\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 (annotation_level > 1)
+ printf_filtered ("\n\032\032field-value\n");
}
if (TYPE_FIELD_PACKED (type, i))