-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[Dexter] add get_pc #152719
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
[Dexter] add get_pc #152719
Conversation
"""Get the current PC in frame at frame_idx depth. | ||
frame_idx 0 is the current function. | ||
""" | ||
r = self.evaluate_expression("$pc", frame_idx) |
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.
Does $pc
work for all supported debuggers?
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.
Define supported debugger - it works for our debugger and LLDB.
I suppose the failure mode could be more user friendly. An exception explaining the feature isn't supported by the debugger might be better than these asserts.
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.
LGTM with the exception instead of the asserts.
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.
Done
f537f45
to
7089cfd
Compare
47f3267
to
6fe4940
Compare
6fe4940
to
d35acc5
Compare
No description provided.