Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: xisso on March 06, 2015, 02:41:13 am

Title: Debugging into a struct containing pointers
Post by: xisso on March 06, 2015, 02:41:13 am
Hi.

I recently started to use codeblocks and while debugging i'm not really sure how to display what is on the adress when into a struct containing a  pointer.

Here is my watch and struct - http://postimg.org/image/62ii13ixr/
Title: Re: Debugging into a struct containing pointers
Post by: oBFusCATed on March 06, 2015, 03:59:02 am
Dereferencing pointers in structs is not supported.
You'll have to dereference them yourself.
Title: Re: Debugging into a struct containing pointers
Post by: xisso on March 06, 2015, 06:54:34 am
Thanks for the quick answer. Is it a feature ur thining of implementing?
Title: Re: Debugging into a struct containing pointers
Post by: oBFusCATed on March 06, 2015, 09:01:19 am
Yes, but it requires full reimplementation of the debugger plugin.
I've started it, but I have other higher priority issues I want to solve first.
Title: Re: Debugging into a struct containing pointers
Post by: ollydbg on March 07, 2015, 08:32:40 am
I think the best method to solve this issue is to create a custom gdb pretty printer for this struct.