Bug 469764 - [breakpoints] Allow watchpoints to make use of GDB's 'location' parameter
Summary: [breakpoints] Allow watchpoints to make use of GDB's 'location' parameter
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-09 14:09 EDT by Marc Khouzam CLA
Modified: 2020-09-04 15:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2015-06-09 14:09:54 EDT
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
Comment 1 Marc-André Laperle CLA 2015-06-09 14:29:43 EDT
I've used -location a few times too, it will be useful.