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 44/55] Introduce cp_print_value_fields and c_value_print_struct


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

Simon> On 2019-12-08 1:29 p.m., Tom Tromey wrote:
>> @@ -385,6 +386,280 @@ cp_print_value_fields (struct type *type, struct type *real_type,
>> fprintf_filtered (stream, "}");
>> }
>> 
>> +/* Mutually recursive subroutines of cp_print_value and c_val_print to
>> +   print out a structure's fields: cp_print_value_fields and
>> +   cp_print_value.
>> +
>> +   TYPE, VALADDR, ADDRESS, STREAM, RECURSE, and OPTIONS have the same
>> +   meanings as in cp_print_value and c_val_print.
>> +
>> +   2nd argument REAL_TYPE is used to carry over the type of the
>> +   derived class across the recursion to base classes.
>> +
>> +   DONT_PRINT is an array of baseclass types that we should not print,
>> +   or zero if called from top level.  */

Simon> This comment needs to be updated.

I did this.

Tom


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