aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-13 17:39:52 -0600
committerTom Tromey <tom@tromey.com>2020-03-13 18:03:40 -0600
commit4f9ae810130bc4202ec1c5eae934900c542a9016 (patch)
tree902dd418b78f104a7bcdc7b4357b4a443bd522f9 /gdb/valprint.h
parent156bfec999186e3eccaf51fa3b81280bf51dbaa4 (diff)
downloadgdb-4f9ae810130bc4202ec1c5eae934900c542a9016.zip
gdb-4f9ae810130bc4202ec1c5eae934900c542a9016.tar.gz
gdb-4f9ae810130bc4202ec1c5eae934900c542a9016.tar.bz2
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h
index 1aca294..90df12d 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);