how to print struct in GDB

Daniel Jacobowitz drow@false.org
Mon Sep 3 14:50:00 GMT 2007


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



More information about the Gdb mailing list