Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
Debugging into a struct containing pointers
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Debugging into a struct containing pointers (Read 4239 times)
xisso
Single posting newcomer
Posts: 2
Debugging into a struct containing pointers
«
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/
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: Debugging into a struct containing pointers
«
Reply #1 on:
March 06, 2015, 03:59:02 am »
Dereferencing pointers in structs is not supported.
You'll have to dereference them yourself.
Logged
(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
Single posting newcomer
Posts: 2
Re: Debugging into a struct containing pointers
«
Reply #2 on:
March 06, 2015, 06:54:34 am »
Thanks for the quick answer. Is it a feature ur thining of implementing?
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: Debugging into a struct containing pointers
«
Reply #3 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.
Logged
(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
Developer
Lives here!
Posts: 5974
OpenCV and Robotics
Re: Debugging into a struct containing pointers
«
Reply #4 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.
Logged
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.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
Debugging into a struct containing pointers