Fix qLaunchGDBServer packet parsing in GDBRemoteCommunicationServerPlatform.

llvm-svn: 230390
This commit is contained in:
Oleksiy Vyalov 2015-02-24 22:23:39 +00:00
parent 030b8cb413
commit c282ebd724
1 changed files with 2 additions and 2 deletions

View File

@ -84,14 +84,14 @@ GDBRemoteCommunicationServerPlatform::Handle_qLaunchGDBServer (StringExtractorGD
Log *log(GetLogIfAnyCategoriesSet(LIBLLDB_LOG_PLATFORM));
if (log)
log->Printf ("LLGSPacketHandler::%s() called", __FUNCTION__);
log->Printf ("GDBRemoteCommunicationServerPlatform::%s() called", __FUNCTION__);
// Sleep and wait a bit for debugserver to start to listen...
ConnectionFileDescriptor file_conn;
std::string hostname;
// TODO: /tmp/ should not be hardcoded. User might want to override /tmp
// with the TMPDIR environment variable
packet.SetFilePos(::strlen ("qLaunchLLGSPacketHandler;"));
packet.SetFilePos(::strlen ("qLaunchGDBServer;"));
std::string name;
std::string value;
uint16_t port = UINT16_MAX;