debugging memory location changes.

P

Pawel

Hallo. I have the following problem.

I am debugging large code I am not familiar with. I noticed that
memory location, for example funnyObject.field, changes somewhere and
I do not know where, thus I do not know where to set the breakpoint.
Do You know an efficient way of finding places in the code where value
of memory location changes?

Regards Pawel
 
P

Pawel

Pawel said:
Hallo. I have the following problem.

I am debugging large code I am not familiar with. I noticed that
memory location, for example funnyObject.field, changes somewhere and
I do not know where, thus I do not know where to set the breakpoint.
Do You know an efficient way of finding places in the code where value
of memory location changes?

Regards Pawel

Sorry, forgot to mention I am using Linux.
Regards,
Pawel
 
M

Michael

Sorry, forgot to mention I am using Linux.
Regards,
Pawel

This is way off-topic, as there's no standard way to do this in C++.
But probably your debugger has this functionality. It's typically
called watchpoint. Basically, you set a breakpoint conditional on a
variable changing. Check out your gdb or other documentation for more
details.

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top