diff options
Diffstat (limited to 'lldb/examples/python/gdb_disassemble.py')
-rwxr-xr-x | lldb/examples/python/gdb_disassemble.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/examples/python/gdb_disassemble.py b/lldb/examples/python/gdb_disassemble.py index 2590aba8c85..65983e2e993 100755 --- a/lldb/examples/python/gdb_disassemble.py +++ b/lldb/examples/python/gdb_disassemble.py @@ -16,11 +16,11 @@ def disassemble(debugger, command, result, dict): inst_offset = inst_addr - start_addr comment = inst.comment if comment: - print "<%s + %-4u> 0x%x %8s %s ; %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands, comment) + print("<%s + %-4u> 0x%x %8s %s ; %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands, comment)) else: - print "<%s + %-4u> 0x%x %8s %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands) + print("<%s + %-4u> 0x%x %8s %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands)) # Install the command when the module gets imported lldb.debugger.HandleCommand( 'command script add -f gdb_disassemble.disassemble gdb-disassemble') -print 'Installed "gdb-disassemble" command for disassembly' +print('Installed "gdb-disassemble" command for disassembly') |