[lldb][util] Use Python3 print function in example code
This commit is contained in:
parent
c3366256fa
commit
816002523f
1 changed files with 2 additions and 2 deletions
|
|
@ -951,7 +951,7 @@ def get_GPRs(frame):
|
|||
from lldbutil import get_GPRs
|
||||
regs = get_GPRs(frame)
|
||||
for reg in regs:
|
||||
print "%s => %s" % (reg.GetName(), reg.GetValue())
|
||||
print("%s => %s" % (reg.GetName(), reg.GetValue()))
|
||||
...
|
||||
"""
|
||||
return get_registers(frame, "general purpose")
|
||||
|
|
@ -965,7 +965,7 @@ def get_FPRs(frame):
|
|||
from lldbutil import get_FPRs
|
||||
regs = get_FPRs(frame)
|
||||
for reg in regs:
|
||||
print "%s => %s" % (reg.GetName(), reg.GetValue())
|
||||
print("%s => %s" % (reg.GetName(), reg.GetValue()))
|
||||
...
|
||||
"""
|
||||
return get_registers(frame, "floating point")
|
||||
|
|
|
|||
Loading…
Reference in a new issue