News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

GDB debugging and watching data structures

Started by Rajveer, June 08, 2008, 11:37:02 PM

Previous topic - Next topic

Rajveer

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

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?