summaryrefslogtreecommitdiffstats
path: root/lldb/utils/vim-lldb/python-vim-lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/utils/vim-lldb/python-vim-lldb')
-rw-r--r--lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py8
-rw-r--r--lldb/utils/vim-lldb/python-vim-lldb/vim_ui.py6
2 files changed, 9 insertions, 5 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)
diff --git a/lldb/utils/vim-lldb/python-vim-lldb/vim_ui.py b/lldb/utils/vim-lldb/python-vim-lldb/vim_ui.py
index 33eb6650466..bc5b6a4f1ca 100644
--- a/lldb/utils/vim-lldb/python-vim-lldb/vim_ui.py
+++ b/lldb/utils/vim-lldb/python-vim-lldb/vim_ui.py
@@ -1,6 +1,8 @@
# LLDB UI state in the Vim user interface.
+from __future__ import print_function
+
import os
import re
import sys
@@ -143,7 +145,7 @@ class UI:
if curname is not None and is_same_file(curname, fname):
move_cursor(line, 0)
elif move_cursor:
- print "FIXME: not sure where to move cursor because %s != %s " % (vim.current.buffer.name, fname)
+ print("FIXME: not sure where to move cursor because %s != %s " % (vim.current.buffer.name, fname))
def update_breakpoints(self, target, buffers):
""" Decorates buffer with signs corresponding to breakpoints in target. """
@@ -219,7 +221,7 @@ class UI:
self.update_pc(process, self.get_user_buffers, goto_file)
if status is not None and len(status) > 0:
- print status
+ print(status)
def haveBreakpoint(self, file, line):
""" Returns True if we have a breakpoint at file:line, False otherwise """
OpenPOWER on IntegriCloud