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

FR: conditional breakpoints #10

Open
GitMensch opened this issue Dec 22, 2023 · 2 comments
Open

FR: conditional breakpoints #10

GitMensch opened this issue Dec 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@GitMensch
Copy link
Collaborator

Ideally it would be able to set a condition to a breakpoint after it is reached (you set it at the start, then find that you only want to stop if a variable is > 42).

@marcsosduma
Copy link
Owner

Hello! I understand. I will research how to do that.

@GitMensch
Copy link
Collaborator Author

the possibly easiest option is to create an internal breakpoint as before, but when reached resolve the condition "live" and then either continue (but only if the program was running before not on step) or just stay; the better option is to create a gdb conditional breakpoint, but this may not be possible for all variables (easy for integer and float variables (just add the comparison with a cast) and for equal/not equal for USAGE DISPLAY (using a call to memcmp as condition), likely harder for everything else).

@eugeniodilo eugeniodilo added the enhancement New feature or request label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants