[Lldb-commits] [lldb] r353944 - Fix one more string/bytes issue in lldb-server tests

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 13 04:55:00 PST 2019


Author: labath
Date: Wed Feb 13 04:54:59 2019
New Revision: 353944

URL: http://llvm.org/viewvc/llvm-project?rev=353944&view=rev
Log:
Fix one more string/bytes issue in lldb-server tests

This fixes about a dozen tests with python3.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py?rev=353944&r1=353943&r2=353944&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/socket_packet_pump.py Wed Feb 13 04:54:59 2019
@@ -174,7 +174,7 @@ class SocketPacketPump(object):
             can_read, _, _ = select.select([self._socket], [], [], 0)
             if can_read and self._socket in can_read:
                 try:
-                    new_bytes = self._socket.recv(4096)
+                    new_bytes = self._socket.recv(4096).decode("utf-8")
                     if self._logger and new_bytes and len(new_bytes) > 0:
                         self._logger.debug(
                             "pump received bytes: {}".format(new_bytes))




More information about the lldb-commits mailing list