Author Topic: GDB debugging and watching data structures  (Read 3134 times)

Rajveer

  • Guest
GDB debugging and watching data structures
« on: June 08, 2008, 11:37:02 pm »
Hi guys, I'm fairly new to Windows development and Code::Blocks so please bear with me!

I have Code::Blocks compiling with GCC/MinGW and debugging with GDB, and am trying to watch a dynamic data structure. The structure contains an array of malloced pointers to another data structure, which in turn contain arrays of pointers to other malloced structures. Is it possible in a watch to open up the top node and go through the whole structure just like I could if I didn't use pointers and actually included the sub structures in their parent definitions?

Rajveer

  • Guest
Re: GDB debugging and watching data structures
« Reply #1 on: June 10, 2008, 08:38:38 pm »
Maybe I overcomplicated that question. Simply:

Is it possible to follow pointers to what they point at in the watch window like you can in VS, by simply clicking a + next to it or adding it quickly to the watch list so you can go through structures quickly?