watchpoints on dynamic memory [message #161598] |
Tue, 10 January 2006 22:08 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: hal.--remove-the-obvious--onsnet.nu
Hi
I am trying to debug a c++ program which segfaults somewhere in the
middle of a simulation run. Rather than stepping through the program
until I hit the offending statement I would like to set a watchpoint on
the address that it tries to access.
Afaik this can only be done on global variables. Is that right or did I
miss something?
Jan van Mastbergen
|
|
|
Re: watchpoints on dynamic memory [message #161606 is a reply to message #161598] |
Tue, 10 January 2006 22:27 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mikhailk.qnx.com
The option to set a watchpoint on arbitrary expression was available for CDT
2.1.x but it didn't make to the current release for various reasons. We are
considering to bring it back in the next version.
The workaround is to use the gdb console and the "watch", "awatch" and
"rwatch" gdb commands.
"Jan van Mastbergen" <hal@--remove-the-obvious--onsnet.nu> wrote in message
news:dq1ba2$ksu$1@utils.eclipse.org...
> Hi
>
> I am trying to debug a c++ program which segfaults somewhere in the middle
> of a simulation run. Rather than stepping through the program until I hit
> the offending statement I would like to set a watchpoint on the address
> that it tries to access.
> Afaik this can only be done on global variables. Is that right or did I
> miss something?
>
> Jan van Mastbergen
|
|
|
Powered by
FUDForum. Page generated in 0.03199 seconds