Re: finding sizeof structure using gdb



junky fellow wrote:

Is there any way by which I can find out the size of a particular structure using GDB?

Did you try the obvious 'print sizeof(my_type)'

Also, is there a way, I can find out the offset of a member inside
a structure ?

You could define a wrapper in your code and call that.
.