You can use the GDB command ptype to print out the definition of a struct or class.
Additionally, use ptype /o to print offsets and sizes of all fields in a struct (like pahole).
You can use the GDB command ptype to print out the definition of a struct or class.
Additionally, use ptype /o to print offsets and sizes of all fields in a struct (like pahole).