[PATCH] Fix ptype/o bug with "<no data fields>"

Tom Tromey tom@tromey.com
Thu Apr 22 13:17:16 GMT 2021


>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

>> gdb/ChangeLog
>> 2021-04-21  Tom Tromey  <tom@tromey.com>
>> 
>> * c-typeprint.c (c_type_print_base_struct_union): Use
>> print_spaces_filtered_with_print_options.
>> 
>> gdb/testsuite/ChangeLog
>> 2021-04-21  Tom Tromey  <tom@tromey.com>
>> 
>> * gdb.base/ptype-offsets.cc (struct empty_member): New.
>> (main): Use empty_member.
>> * gdb.base/ptype-offsets.exp: Add new test.

Andrew> LGTM.

Thanks.  I think I'll hold this one until the other ptype/o patches
land.

Tom


More information about the Gdb-patches mailing list