brintos

brintos / llvm-project-archived public Read only

0
0
Text · 775 B · 0b4b9d8 Raw
34 lines · python
1import lldb2 3 4@lldb.command()5def decorated1(debugger, args, exe_ctx, result, dict):6    """7    Python command defined by @lldb.command8    """9    print("hello from decorated1", file=result)10 11 12@lldb.command(doc="Python command defined by @lldb.command")13def decorated2(debugger, args, exe_ctx, result, dict):14    """15    This docstring is overridden.16    """17    print("hello from decorated2", file=result)18 19 20@lldb.command()21def decorated3(debugger, args, result, dict):22    """23    Python command defined by @lldb.command24    """25    print("hello from decorated3", file=result)26 27 28@lldb.command("decorated4")29def _decorated4(debugger, args, exe_ctx, result, dict):30    """31    Python command defined by @lldb.command32    """33    print("hello from decorated4", file=result)34