Re: [PATCH 12/14] Factor out float printing code from generic_val_print

Pedro Alves
2015-07-23T21:46:13Z

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