[Lldb-commits] [lldb] [lldb-dap] Refactoring DebugCommunication to improve test consistency. (PR #143818)
    John Harrison via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Thu Jun 12 16:42:37 PDT 2025
    
    
  
================
@@ -76,26 +178,22 @@ def read_packet(f, verbose=False, trace_file=None):
         if verbose:
             print('length: "%u"' % (length))
         # Skip empty line
-        line = f.readline()
+        line = f.readline().decode()
         if verbose:
             print('empty: "%s"' % (line))
         # Read JSON bytes
         json_str = f.read(length)
         if verbose:
-            print('json: "%s"' % (json_str))
+            print('json: "%r"' % (json_str))
----------------
ashgti wrote:
Done.
https://github.com/llvm/llvm-project/pull/143818
    
    
More information about the lldb-commits
mailing list