[Lldb-commits] [lldb] 8160025 - [lldb][util] Use Python3 print function in example code
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 16 02:42:24 PDT 2025
Author: David Spickett
Date: 2025-10-16T09:41:58Z
New Revision: 816002523f6562c2b742fbffabb5c4cfc03bed8b
URL: https://github.com/llvm/llvm-project/commit/816002523f6562c2b742fbffabb5c4cfc03bed8b
DIFF: https://github.com/llvm/llvm-project/commit/816002523f6562c2b742fbffabb5c4cfc03bed8b.diff
LOG: [lldb][util] Use Python3 print function in example code
Added:
Modified:
lldb/utils/lui/lldbutil.py
Removed:
################################################################################
diff --git a/lldb/utils/lui/lldbutil.py b/lldb/utils/lui/lldbutil.py
index 140317af3670b..589acaeea3206 100644
--- a/lldb/utils/lui/lldbutil.py
+++ b/lldb/utils/lui/lldbutil.py
@@ -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")
More information about the lldb-commits
mailing list