diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-07-05 11:35:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-05 11:35:04 (GMT) |
commit | cb2f533085542a753fc45d17fdb09396c46fbadc (patch) | |
tree | 66d378d1df7cb82834e944a1f37865809abf75ae /src/uscxml/debug/DebugSession.cpp | |
parent | 3f10e11d6ad2b97fee4aee6e09bc959ba9b8e0e5 (diff) | |
parent | a0f96c5dd050c524223ac644ba8798bc7cc80bfd (diff) | |
download | uscxml-cb2f533085542a753fc45d17fdb09396c46fbadc.zip uscxml-cb2f533085542a753fc45d17fdb09396c46fbadc.tar.gz uscxml-cb2f533085542a753fc45d17fdb09396c46fbadc.tar.bz2 |
Merge pull request #155 from tklab-tud/sradomski
More performant monitors with slight API break
Diffstat (limited to 'src/uscxml/debug/DebugSession.cpp')
-rw-r--r-- | src/uscxml/debug/DebugSession.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/debug/DebugSession.cpp b/src/uscxml/debug/DebugSession.cpp index 802b355..42973fc 100644 --- a/src/uscxml/debug/DebugSession.cpp +++ b/src/uscxml/debug/DebugSession.cpp @@ -119,7 +119,7 @@ Data DebugSession::debugPrepare(const Data& data) { if (_interpreter) { // register ourself as a monitor _interpreter.addMonitor(_debugger); - _debugger->attachSession(_interpreter.getImpl().get(), shared_from_this()); + _debugger->attachSession(_interpreter.getImpl()->getSessionId(), shared_from_this()); replyData.compound["status"] = Data("success", Data::VERBATIM); } else { @@ -149,7 +149,7 @@ Data DebugSession::debugAttach(const Data& data) { std::shared_ptr<InterpreterImpl> instance = weakInstance.second.lock(); if (instance && instance->getSessionId() == interpreterId) { _interpreter = instance; - _debugger->attachSession(_interpreter.getImpl().get(), shared_from_this()); + _debugger->attachSession(_interpreter.getImpl()->getSessionId(), shared_from_this()); interpreterFound = true; break; } @@ -170,7 +170,7 @@ Data DebugSession::debugDetach(const Data& data) { Data replyData; _isAttached = false; - _debugger->detachSession(_interpreter.getImpl().get()); + _debugger->detachSession(_interpreter.getImpl()->getSessionId()); replyData.compound["status"] = Data("success", Data::VERBATIM); return replyData; } @@ -223,7 +223,7 @@ Data DebugSession::debugStop(const Data& data) { if (_interpreter) { // detach from old intepreter - _debugger->detachSession(_interpreter.getImpl().get()); + _debugger->detachSession(_interpreter.getImpl()->getSessionId()); } if (_isRunning && _interpreterThread != NULL) { |