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")


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to