Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchpoint set on stack variable can point to the wrong thing #6

Open
gsmcmullin opened this issue Oct 23, 2016 · 0 comments
Open

Watchpoint set on stack variable can point to the wrong thing #6

gsmcmullin opened this issue Oct 23, 2016 · 0 comments
Labels

Comments

@gsmcmullin
Copy link
Owner

Stack local variables may now be added to the variable watch view, but double clicking on them in the expanded call stack view. This works well for inspection and assignments, but when setting a watchpoint on the variable object things can go wrong.

When the user requests a watchpoint on a variable object, we ask GDB for the expression for the object with -var-info-path-expression <path>, and then set a watchpoint on this expression with -break-watch <expr>. This expression may not be evaluated in the context in which it was created.

@gsmcmullin gsmcmullin added the bug label Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant