summaryrefslogtreecommitdiffstats
path: root/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py')
-rw-r--r--lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py b/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
index b36769f5a57..0e59cc5f4b7 100644
--- a/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
+++ b/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
@@ -3,6 +3,8 @@
# This file defines the layer that talks to lldb
#
+from __future__ import print_function
+
import os
import re
import sys
@@ -164,7 +166,7 @@ class LLDBController(object):
self.ui.activate()
self.pid = self.process.GetProcessID()
- print "Attached to %s (pid=%d)" % (process_name, self.pid)
+ print("Attached to %s (pid=%d)" % (process_name, self.pid))
def doDetach(self):
if self.process is not None and self.process.IsValid():
@@ -196,7 +198,7 @@ class LLDBController(object):
self.process.GetBroadcaster().AddListener(
self.processListener, lldb.SBProcess.eBroadcastBitStateChanged)
- print "Launched %s %s (pid=%d)" % (exe, args, self.pid)
+ print("Launched %s %s (pid=%d)" % (exe, args, self.pid))
if not stop_at_entry:
self.doContinue()
@@ -323,7 +325,7 @@ class LLDBController(object):
if success:
self.ui.update(self.target, "", self, goto_file)
if len(output) > 0 and print_on_success:
- print output
+ print(output)
else:
sys.stderr.write(output)
OpenPOWER on IntegriCloud