| How to set watchpoint for local/stack variable access/change? [message #182348] |
Mon, 15 January 2007 19:07 |
Eclipse User |
|
|
|
Originally posted by: matt.downwithspammers-mengland.net
I'm trying to get the Eclipse-CDT 3.1.1, gdb-based debugger
integration to set a watchpoint on a local (stack memory) variable
such that the debug execution stops when the variable is written to,
read from, or changed in general.
However, I can't get this to work (although I can get general code
breakpoints to work). ie, I try to set a watchpoint/breakpoint or a
watch expression for a local variable (in my example it's an "int
retval" variable at the beginning of main() that's returned at the
very end of main()), and the debug execution does not stop when retval
is written to.
Any thoughts?
Do global variables work better in this case, and if so, why?
Matt
--
Dispersed Storage: http://cleversafe.org
|
|
|
Powered by
FUDForum. Page generated in 0.04695 seconds