Skip to content

Commit

Permalink
Remove test command, see _capture_onecmd for example
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Feb 20, 2024
1 parent 0850aca commit bc86faa
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/chatdbg/chatdbg_lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,25 +588,3 @@ def client_print(line=""):
print(line, file=sys.stdout, flush=True)

_assistant.run(command, client_print)


@lldb.command("test")
def test(debugger: lldb.SBDebugger, command: str, result: str, internal_dict: dict):
# Get the command interpreter from the debugger
interpreter = debugger.GetCommandInterpreter()

# Create an object to hold the result of the command execution
result = lldb.SBCommandReturnObject()

# Execute a command (e.g., "version" to get the LLDB version)
interpreter.HandleCommand(command, result)

# Check if the command was executed successfully
if result.Succeeded():
# Get the output of the command
output = result.GetOutput()
print("Command Output:", output)
else:
# Get the error message if the command failed
error = result.GetError()
print("Command Error:", error)

0 comments on commit bc86faa

Please sign in to comment.