aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-valprint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-02-07 17:49:32 +0000
committerPedro Alves <palves@redhat.com>2011-02-07 17:49:32 +0000
commit32b72a4208acf51e0d12ad77ea5ddf671b08a963 (patch)
tree202b2ab6908194dc537ef102f6f2ddc364424d12 /gdb/ada-valprint.c
parenta449c2d800cba53351e3e0c009c2b14bf1eff362 (diff)
downloadgdb-32b72a4208acf51e0d12ad77ea5ddf671b08a963.zip
gdb-32b72a4208acf51e0d12ad77ea5ddf671b08a963.tar.gz
gdb-32b72a4208acf51e0d12ad77ea5ddf671b08a963.tar.bz2
* valprint.c (val_print): Extend comment.
* ada-valprint.c (ada_valprint): Rewrite comment deferring interface explanation to val_print. (ada_val_print_array): Adjust comment to current interface. (print_field_values): Adjust comment to current interface. * c-valprint.c (c_val_print): Rewrite comment deferring interface explanation to val_print. * f-valprint.c (f_val_print): Ditto. * jv-valprint.c (java_val_print): Ditto. * m2-valprint.c (m2_val_print): Ditto. * p-valprint.c (pascal_val_print): Ditto.
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r--gdb/ada-valprint.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index bd297c6..bc3ea26 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -564,15 +564,9 @@ ada_printstr (struct ui_file *stream, struct type *type,
}
-/* Print data of type TYPE located at VALADDR (within GDB), which came from
- the inferior at address ADDRESS, onto stdio stream STREAM according to
- OPTIONS. The data at VALADDR is in target byte order.
-
- If the data is printed as a string, returns the number of string characters
- printed.
-
- RECURSE indicates the amount of indentation to supply before
- continuation lines; this amount is roughly twice the value of RECURSE. */
+/* See val_print for a description of the various parameters of this
+ function; they are identical. The semantics of the return value is
+ also identical to val_print. */
int
ada_val_print (struct type *type, const gdb_byte *valaddr,
@@ -598,7 +592,7 @@ ada_val_print (struct type *type, const gdb_byte *valaddr,
}
/* Assuming TYPE is a simple array, print the value of this array located
- at VALADDR. See ada_val_print for a description of the various
+ at VALADDR + OFFSET. See ada_val_print for a description of the various
parameters of this function; they are identical. The semantics
of the return value is also identical to ada_val_print. */
@@ -1026,13 +1020,14 @@ print_record (struct type *type, const gdb_byte *valaddr,
fprintf_filtered (stream, ")");
}
-/* Print out fields of value at VALADDR having structure type TYPE.
+/* Print out fields of value at VALADDR + OFFSET having structure type TYPE.
- TYPE, VALADDR, STREAM, RECURSE, and OPTIONS have the
- same meanings as in ada_print_value and ada_val_print.
+ TYPE, VALADDR, OFFSET, STREAM, RECURSE, and OPTIONS have the same
+ meanings as in ada_print_value and ada_val_print.
- OUTER_TYPE and OUTER_VALADDR give type and address of enclosing record
- (used to get discriminant values when printing variant parts).
+ OUTER_TYPE and OUTER_OFFSET give type and address of enclosing
+ record (used to get discriminant values when printing variant
+ parts).
COMMA_NEEDED is 1 if fields have been printed at the current recursion
level, so that a comma is needed before any field printed by this