This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
how to print struct in GDB
- From: "debug.sh" <debug dot sh at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 2 Sep 2007 22:57:11 -0700 (PDT)
- Subject: how to print struct in GDB
hi,
i hav array of following struct which contains 50 elements. I want to
print only first feild of the struct ie name field in GDB debuggure.
struct node {
char name[17] ;
int age;
char sex;
int location
} SS[50]
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]
--
View this message in context: http://www.nabble.com/how-to-print-struct-in-GDB-tf4370450.html#a12456773
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.