[PATCH V2] CTF: incorrect underlying type setting for enumeration types"
Tom Tromey
tom@tromey.com
Tue Oct 19 19:42:58 GMT 2021
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
>> +struct type *
>> +objfile_int_type (struct objfile *of, int size_in_bytes, bool unsigned_p)
>> +{
>> + struct type *int_type;
>> +
>> + /* Helper macro to examine the various builtin types. */
>> +#define TRY_TYPE(F) \
>> + int_type = (unsigned_p \
>> + ? objfile_type (of)->builtin_unsigned_ ## F \
Simon> Can this function be in objfile.{c,h}?
I was wondering about a helper method on struct objfile_type instead.
Tom
More information about the Gdb-patches
mailing list