News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Debugging into a struct containing pointers

Started by xisso, March 06, 2015, 02:41:13 AM

Previous topic - Next topic

xisso

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/

oBFusCATed

Dereferencing pointers in structs is not supported.
You'll have to dereference them yourself.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

xisso

Thanks for the quick answer. Is it a feature ur thining of implementing?

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ollydbg

I think the best method to solve this issue is to create a custom gdb pretty printer for this struct.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.