We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc05d4 commit d35acc5Copy full SHA for d35acc5
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerBase.py
@@ -233,6 +233,16 @@ def frames_below_main(self):
233
def evaluate_expression(self, expression, frame_idx=0) -> ValueIR:
234
pass
235
236
+ def get_pc(self, frame_idx: int = 0) -> str:
237
+ """Get the current PC in frame at frame_idx depth.
238
+ frame_idx 0 is the current function.
239
+ """
240
+ r = self.evaluate_expression("$pc", frame_idx)
241
+ assert r.could_evaluate
242
+ assert not r.is_optimized_away
243
+ assert not r.is_irretrievable
244
+ return r.value
245
+
246
def _external_to_debug_path(self, path):
247
if not self.options.debugger_use_relative_paths:
248
return path
0 commit comments