Community
Participate
Working Groups
Currently setting watchpoints to say ptr->a will cause the watchpoint to follow the expression. If the value of ptr changes, the watchpoint will hit. Often, the user wants to know if the original ptr->a changes instead. GDB offers this by using the 'watch -location' flag. CDT should offer access to that somehow. A user confirmed that to workaround this limitation he has to first find the address of ptr->a and use that hard coded address to set the wathpoint
I've used -location a few times too, it will be useful.