Skip to content

Conversation

OCHyams
Copy link
Contributor

@OCHyams OCHyams commented Aug 8, 2025

No description provided.

"""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.

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@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
Base automatically changed from users/OCHyams/dexter-new-bps to main August 27, 2025 13:34
@OCHyams OCHyams force-pushed the users/OCHyams/get_pc branch from 6fe4940 to d35acc5 Compare August 27, 2025 13:35
@OCHyams OCHyams merged commit ab459c4 into main Aug 27, 2025
9 checks passed
@OCHyams OCHyams deleted the users/OCHyams/get_pc branch August 27, 2025 16:03
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