User forums > Using Code::Blocks

GDB debugging and watching data structures

(1/1)

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?

Navigation

[0] Message Index

Go to full version