diff options
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/gdb/language.h b/gdb/language.h index aaefb036383..4f78a28a470 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -208,11 +208,32 @@ struct language_defn void (*la_print_typedef) (struct type *type, struct symbol *new_symbol, struct ui_file *stream); - /* Print a value using syntax appropriate for this language. */ + /* Print a value using syntax appropriate for this language. + + TYPE is the type of the sub-object to be printed. - int (*la_val_print) (struct type *, const gdb_byte *, int, CORE_ADDR, - struct ui_file *, int, - const struct value_print_options *); + CONTENTS holds the bits of the value. This holds the entire + enclosing object. + + EMBEDDED_OFFSET is the offset into the outermost object of the + sub-object represented by TYPE. This is the object which this + call should print. Note that the enclosing type is not + available. + + ADDRESS is the address in the inferior of the enclosing object. + + STREAM is the stream on which the value is to be printed. + + RECURSE is the recursion depth. It is zero-based. + + OPTIONS are the formatting options to be used when + printing. */ + + int (*la_val_print) (struct type *type, + const gdb_byte *contents, + int embedded_offset, CORE_ADDR address, + struct ui_file *stream, int recurse, + const struct value_print_options *options); /* Print a top-level value using syntax appropriate for this language. */ |