mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-02 13:12:09 +00:00
Fix logging in GDBRemoteCommunicationServerPlatform.
llvm-svn: 230418
This commit is contained in:
parent
c89bb9dd51
commit
946e39a8d1
@ -154,7 +154,7 @@ GDBRemoteCommunicationServerPlatform::Handle_qLaunchGDBServer (StringExtractorGD
|
|||||||
if (error.Success())
|
if (error.Success())
|
||||||
{
|
{
|
||||||
if (log)
|
if (log)
|
||||||
log->Printf ("LLGSPacketHandler::%s() debugserver launched successfully as pid %" PRIu64, __FUNCTION__, debugserver_pid);
|
log->Printf ("GDBRemoteCommunicationServerPlatform::%s() debugserver launched successfully as pid %" PRIu64, __FUNCTION__, debugserver_pid);
|
||||||
|
|
||||||
char response[256];
|
char response[256];
|
||||||
const int response_len = ::snprintf (response, sizeof(response), "pid:%" PRIu64 ";port:%u;", debugserver_pid, port + m_port_offset);
|
const int response_len = ::snprintf (response, sizeof(response), "pid:%" PRIu64 ";port:%u;", debugserver_pid, port + m_port_offset);
|
||||||
@ -171,7 +171,7 @@ GDBRemoteCommunicationServerPlatform::Handle_qLaunchGDBServer (StringExtractorGD
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (log)
|
if (log)
|
||||||
log->Printf ("LLGSPacketHandler::%s() debugserver launch failed: %s", __FUNCTION__, error.AsCString ());
|
log->Printf ("GDBRemoteCommunicationServerPlatform::%s() debugserver launch failed: %s", __FUNCTION__, error.AsCString ());
|
||||||
}
|
}
|
||||||
return SendErrorResponse (9);
|
return SendErrorResponse (9);
|
||||||
#endif
|
#endif
|
||||||
@ -218,7 +218,7 @@ GDBRemoteCommunicationServerPlatform::Handle_QSetWorkingDir (StringExtractorGDBR
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Not implemented on Windows
|
// Not implemented on Windows
|
||||||
return SendUnimplementedResponse ("LLGSPacketHandler::Handle_QSetWorkingDir unimplemented");
|
return SendUnimplementedResponse ("GDBRemoteCommunicationServerPlatform::Handle_QSetWorkingDir unimplemented");
|
||||||
#else
|
#else
|
||||||
// If this packet is sent to a platform, then change the current working directory
|
// If this packet is sent to a platform, then change the current working directory
|
||||||
if (::chdir(path.c_str()) != 0)
|
if (::chdir(path.c_str()) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user