Fix the gdb-client test suite for python3
authorPavel Labath <pavel@labath.sk>
Fri, 15 Feb 2019 10:47:34 +0000 (10:47 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 15 Feb 2019 10:47:34 +0000 (10:47 +0000)
commit5f54fe2332ef3fcb34e20f5d62e6c2664d065ef1
tree64291282f45b4c10048398f1cc1d4fd3bea1bf71
parenta00425ff0d04ac862a7990e3826f5aa00dad5d56
Fix the gdb-client test suite for python3

This applies the same fix that was done in r354106 to the lldb-server
test: bitcasting the string to a bytes object before sending it over a
socket. Since the gdb-remote protocol occasionally contains binary data,
and it does not assign any particular encoding to them, this is the
right thing to do here.

llvm-svn: 354114
lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/gdbclientutils.py