gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to print struct in GDB


From: ddd sh
Subject: how to print struct in GDB
Date: Mon, 3 Sep 2007 12:49:44 +0530

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]
reply via email to

[Prev in Thread] Current Thread [Next in Thread]