DebuggerInterface: reset port IDs on Close()...

...and add accessor to detect whether we currently have a valid
connection or not.
This commit is contained in:
Rene Gollent
2013-05-30 21:15:32 -04:00
parent 7b03c0ce31
commit 05d98101be
2 changed files with 6 additions and 0 deletions
@@ -316,6 +316,9 @@ DebuggerInterface::Close(bool killTeam)
if (fDebuggerPort >= 0)
delete_port(fDebuggerPort);
fNubPort = -1;
fDebuggerPort = -1;
}
@@ -38,6 +38,9 @@ public:
status_t Init();
void Close(bool killTeam);
bool Connected() const
{ return fNubPort >= 0; }
Architecture* GetArchitecture() const
{ return fArchitecture; }