I'm extracting C struct layout from and executable using gdb-python.
I manage to get all the fields, offsets, types & sizes.
Still, when trying to re-generate the struct's code, I do not have any indication for whether it was marked with GCC's attribute((__packed__))
.
Is there any way to get this information from the executable? (preferably using gdb-python, but any other way will do too)