summaryrefslogtreecommitdiff
path: root/misc/lldb_rb/lldb_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/lldb_rb/lldb_interface.py')
-rw-r--r--misc/lldb_rb/lldb_interface.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/lldb_rb/lldb_interface.py b/misc/lldb_rb/lldb_interface.py
index 893064db90..25930b2e16 100644
--- a/misc/lldb_rb/lldb_interface.py
+++ b/misc/lldb_rb/lldb_interface.py
@@ -6,3 +6,13 @@ class LLDBInterface:
self.thread = self.process.GetSelectedThread()
self.frame = self.thread.GetSelectedFrame()
+ def _append_command_output(self, command):
+ output1 = self.result.GetOutput()
+ self.debugger.GetCommandInterpreter().HandleCommand(command, self.result)
+ output2 = self.result.GetOutput()
+ self.result.Clear()
+ self.result.write(output1)
+ self.result.write(output2)
+
+ def _append_expression(self, expression):
+ self._append_command_output("expression " + expression)