This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 12/14] Factor out float printing code from generic_val_print
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Thu, 23 Jul 2015 22:46:09 +0100
- Subject: Re: [PATCH 12/14] Factor out float printing code from generic_val_print
- Authentication-results: sourceware.org; auth=none
- References: <1436978863-15125-1-git-send-email-simon dot marchi at ericsson dot com> <1436978863-15125-13-git-send-email-simon dot marchi at ericsson dot com>
On 07/15/2015 05:47 PM, Simon Marchi wrote:
> +/* generic_val_print helper for TYPE_CODE_FLT. */
> +
> +static void
> +generic_val_print_float (struct type *type, const gdb_byte *valaddr,
> + int embedded_offset, struct ui_file *stream,
> + const struct value *original_value,
> + const struct value_print_options *options)
> +{
> + if (options->format)
> + {
> + val_print_scalar_formatted (type, valaddr, embedded_offset,
> + original_value, options, 0, stream);
> + }
> + else
> + {
> + print_floating (valaddr + embedded_offset, type, stream);
> + }
Wrong indentation, it seem. Otherwise OK.
> +}
Thanks,
Pedro Alves