This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to print struct in GDB


On Sun, Sep 02, 2007 at 10:57:11PM -0700, debug.sh wrote:
> after running 50 loops if i m using (gdb) print SS
> command it will show the all element and field of the array SS[50]
> but how to get first ie name field of array SS[50]

Try reading the section on user-defined commands in the manual.
You can write a loop to do this.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]