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
commitd121c6ce897d34ae168f78cbdacacb109d4833e6 (patch)
treec7247e3cadf6babbf5b6552e4999a7e7e9c3f259 /gdb/valprint.h
parent4dba70eee1fadcb3c1bb50ba17e0fe3512c84180 (diff)
downloadgdb-d121c6ce897d34ae168f78cbdacacb109d4833e6.zip
gdb-d121c6ce897d34ae168f78cbdacacb109d4833e6.tar.gz
gdb-d121c6ce897d34ae168f78cbdacacb109d4833e6.tar.bz2
Introduce value_print_array_elements
This introduces value_print_array_elements, which is an analogue of val_print_array_elements that uses the value API. gdb/ChangeLog 2020-03-13 Tom Tromey <tom@tromey.com> * valprint.c (value_print_array_elements): New function. * valprint.h (value_print_array_elements): Declare.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r--gdb/valprint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h
index 90df12d..20a4231 100644
--- a/gdb/valprint.h
+++ b/gdb/valprint.h
@@ -134,6 +134,12 @@ extern void val_print_array_elements (struct type *, LONGEST,
const struct value_print_options *,
unsigned int);
+/* Print elements of an array. */
+
+extern void value_print_array_elements (struct value *, struct ui_file *, int,
+ const struct value_print_options *,
+ unsigned int);
+
extern void val_print_scalar_formatted (struct type *,
LONGEST,
struct value *,