diff options
author | Tom Tromey <tom@tromey.com> | 2020-03-13 17:39:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-03-13 18:03:40 -0600 |
commit | 4f9ae810130bc4202ec1c5eae934900c542a9016 (patch) | |
tree | 902dd418b78f104a7bcdc7b4357b4a443bd522f9 /gdb/valprint.h | |
parent | 156bfec999186e3eccaf51fa3b81280bf51dbaa4 (diff) | |
download | binutils-gdb-4f9ae810130bc4202ec1c5eae934900c542a9016.tar.gz |
Introduce value_print_scalar_formatted
This introduces a value_print_scalar_formatted, which is an analogue
of val_print_scalar_formatted that uses the value API.
gdb/ChangeLog
2020-03-13 Tom Tromey <tom@tromey.com>
* valprint.h (value_print_scalar_formatted): Declare.
* valprint.c (value_print_scalar_formatted): New function.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r-- | gdb/valprint.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h index 1aca29463f4..90df12dbd7e 100644 --- a/gdb/valprint.h +++ b/gdb/valprint.h @@ -141,6 +141,16 @@ extern void val_print_scalar_formatted (struct type *, int, struct ui_file *); +/* Print a scalar according to OPTIONS and SIZE on STREAM. Format 'i' + is not supported at this level. + + This is how the elements of an array or structure are printed + with a format. */ + +extern void value_print_scalar_formatted + (struct value *val, const struct value_print_options *options, + int size, struct ui_file *stream); + extern void print_binary_chars (struct ui_file *, const gdb_byte *, unsigned int, enum bfd_endian, bool); |