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

breakpoint condition on other frames #3515

Closed
SOF3 opened this issue Sep 29, 2023 · 0 comments · Fixed by #3534
Closed

breakpoint condition on other frames #3515

SOF3 opened this issue Sep 29, 2023 · 0 comments · Fixed by #3534

Comments

@SOF3
Copy link

SOF3 commented Sep 29, 2023

It would be useful to have breakpoints that can join conditions from multiple frames, e.g.

break <locspec>
cond 1 -frame 2 id == 1
cond 1 -and -frame 1 subId == 0

where -and appends the new condition to the previous condition instead of overwriting it, and -frame indicates the frame in which the expression is evaluated.

right now the alternative would be to use two breakpoints and operate manually:

break 1 <locspec>
frame 2
break 2 0
cond 2 id == 1
cond 1 false
continue
clear 2
cond -clear 1
continue
derekparker added a commit to derekparker/delve that referenced this issue Oct 4, 2023
This patch allows a user to set a breakpoint condition targeting a specific frame.

Fixes go-delve#3515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants