[PATCH 1/3] gdb: add support for DW_AT_trampoline in DWARF reader

Tom Tromey tom@tromey.com
Mon Jul 18 16:11:18 GMT 2022


>>> I considered this when implementing it but it seemed like an unrelated change to
>>> me.  Assuming int is 4 bytes and we align to 8 bytes moving is_trampoline to the
>>> 3rd position would also not do anything, would it?  We'd be at
[...]

> I think you missed taking the bitfields (is_noreturn and
> is_trampoline) into consideration. If these get placed together, they
> would be fitted into one int since both these are just 1 bit each.

FWIW you can check the packing using 'ptype/o'.
I'm also inclined to say the bitfields should be adjacent.

thanks,
Tom


More information about the Gdb-patches mailing list