From d121c6ce897d34ae168f78cbdacacb109d4833e6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 13 Mar 2020 17:39:52 -0600 Subject: 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 * valprint.c (value_print_array_elements): New function. * valprint.h (value_print_array_elements): Declare. --- gdb/valprint.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/valprint.h') 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 *, -- cgit v1.1