-
Notifications
You must be signed in to change notification settings - Fork 857
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
Add stepuntilasm
command
#1798
Add stepuntilasm
command
#1798
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
This commit adds a `stepuntilasm` command that, given a mnemonic and, optionally, a set of operands, will step until a instruction that matches both is found. Matching is string-based, as the user will likely want to spell out the asm directive they want as text, and interpreting assembly language conventions for all of the platforms pwndbg supports is probably outside the scope of this change.
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## dev #1798 +/- ##
==========================================
+ Coverage 60.39% 60.45% +0.06%
==========================================
Files 177 177
Lines 21451 21588 +137
Branches 1931 1974 +43
==========================================
+ Hits 12955 13052 +97
- Misses 7853 7889 +36
- Partials 643 647 +4
|
Fixes #1264.
This change adds a
stepuntilasm
command that, given a mnemonic and, optionally, a set of operands, will step until a instruction that matches both is found. Matching is string-based, as the user will likely want to spell out the asm directive they want as text, and interpreting assembly language conventions for all of the platforms pwndbg supports is probably outside the scope of this change.There is a caveat to this implementation in that it can be fairly slow to step over loops, as execution has to be stopped at every branch instruction, but I don't believe there's much that can be done about that.