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/55] Introduce value_print_scalar_formatted


>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> On 2019-12-08 1:29 p.m., Tom Tromey wrote:
>> diff --git a/gdb/valprint.h b/gdb/valprint.h
>> index e4b90404fa2..f1c93aa26b6 100644
>> --- a/gdb/valprint.h
>> +++ b/gdb/valprint.h
>> @@ -141,6 +141,16 @@ extern void val_print_scalar_formatted (struct type *,
>> int,
>> struct ui_file *);
>> 
>> +/* Print a scalar according to OPTIONS and SIZE on STREAM.  Format i
>> +   is not supported at this level.

Simon> There seems to be a typo above, "Format i".

It's copied from val_print_scalar_formatted.  I think it refers to the
literal format 'i', so I changed it to read "Format 'i' is not..."

>> +
>> +   This is how the elements of an array or structure are printed
>> +   with a format.  */
>> +
>> +extern void value_print_scalar_formatted (struct value *,
>> +					  const struct value_print_options *,
>> +					  int, struct ui_file *);
>> +

Simon> I think you should add the parameter names here, especially since the comment
Simon> refers to them.

I've done this.

Tom


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