Skip to content

[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

Open
wants to merge 1 commit into
base: users/OCHyams/dexter-new-bps
Choose a base branch
from

Conversation

OCHyams
Copy link
Contributor

@OCHyams OCHyams commented Aug 8, 2025

No description provided.

Copy link
Contributor Author

OCHyams commented Aug 8, 2025

"""Get the current PC in frame at frame_idx depth.
frame_idx 0 is the current function.
"""
r = self.evaluate_expression("$pc", frame_idx)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@OCHyams OCHyams force-pushed the users/OCHyams/dexter-new-bps branch from f537f45 to 7089cfd Compare August 12, 2025 11:08
@OCHyams OCHyams force-pushed the users/OCHyams/get_pc branch from 47f3267 to 6fe4940 Compare August 12, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants