This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how to print struct in GDB
- From: Daniel Jacobowitz <drow at false dot org>
- To: "debug.sh" <debug dot sh at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 3 Sep 2007 10:50:44 -0400
- Subject: Re: how to print struct in GDB
- References: <12456773.post@talk.nabble.com>
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