If remote platform is used and we're losing remote debug server connection in between Process::ConnectRemote and Process::Attach (in context of PlatformRemoteGDBServer::Attach) current implementation of ProcessGDBRemote thinks that we're in local debug mode and tries to spawn a local debug server. This CL checks whether ProcessGDBRemote is using a remote platform and fails if remote debug server connection is lost.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Nice catch. Looks good.
source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | ||
---|---|---|
3516 | I find this name somewhat misleading. Check would generally imply a read-only operation, but this actually establishes the connection in some circumstances. I'd go for EstablishConnectionIfNeeded or something like that. |
Comment Actions
Files:
/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
Users:
ovyalov (Author)
I find this name somewhat misleading. Check would generally imply a read-only operation, but this actually establishes the connection in some circumstances. I'd go for EstablishConnectionIfNeeded or something like that.