Re: finding sizeof structure using gdb
- From: Spoon <root@localhost>
- Date: Mon, 28 Jan 2008 11:29:39 +0100
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.
.
- References:
- finding sizeof structure using gdb
- From: junky_fellow@xxxxxxxxxxx
- finding sizeof structure using gdb
- Prev by Date: Re: Replacing read() by a debugging function
- Next by Date: Re: Combine two or more .so files
- Previous by thread: Re: finding sizeof structure using gdb
- Next by thread: Replacing read() by a debugging function
- Index(es):