[AArch64] Fix SDNode type mismatches between *.td files and ISel (#116523)
[llvm-project.git] / lldb / examples / python / step_and_print.py
blob9b72f55546f0a4af06b0d74dffebd20328bf4dd6
1 """ Does a step-over then prints the local variables or only the ones passed in """
2 import lldb
5 class StepAndPrint:
6 def __init__(self, debugger, unused):
7 return
9 def __call__(self, debugger, command, exe_ctx, result):
10 # Set the command to synchronous so the step will complete
11 # before we try to run the frame variable.
12 old_async = debugger.GetAsync()
13 debugger.SetAsync(False)
15 debugger.HandleCommand("thread step-over")
16 print("---------- Values: -------------------\n")
17 debugger.HandleCommand("frame variable %s" % (command))
19 debugger.SetAsync(old_async)
21 def get_short_help(self):
22 return (
23 "Does a step-over then runs frame variable passing the command args to it\n"
27 def __lldb_init_module(debugger, unused):
28 debugger.HandleCommand("command script add -o -c step_and_print.StepAndPrint sap")