This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 40/55] Introduce c_value_print_ptr
- From: Simon Marchi <simark at simark dot ca>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Wed, 15 Jan 2020 00:57:27 -0500
- Subject: Re: [PATCH 40/55] Introduce c_value_print_ptr
- References: <20191208182958.10181-1-tom@tromey.com> <20191208182958.10181-41-tom@tromey.com>
On 2019-12-08 1:29 p.m., Tom Tromey wrote:
> This adds c_value_print_ptr, a value-based analogue of
> c_val_print_ptr.
>
> gdb/ChangeLog
> 2019-12-08 Tom Tromey <tom@tromey.com>
>
> * c-valprint.c (c_value_print_ptr): New function.
> (c_value_print_inner): Use it.
>
> Change-Id: Iba7917a57d5d67c51a76014c4bcb82c0353f6453
> ---
> gdb/ChangeLog | 5 +++++
> gdb/c-valprint.c | 40 ++++++++++++++++++++++++++++++++++++++--
> 2 files changed, 43 insertions(+), 2 deletions(-)
>
> diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
> index af7a386fb78..f50c49abbfd 100644
> --- a/gdb/c-valprint.c
> +++ b/gdb/c-valprint.c
> @@ -375,6 +375,43 @@ c_val_print_ptr (struct type *type, const gdb_byte *valaddr,
> }
> }
>
> +/* c_val_print helper for TYPE_CODE_PTR. */
> +
> +static void
> +c_value_print_ptr (struct value*val, struct ui_file *stream, int recurse,
Missing a space.
Simon