This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]