diff options
author | hjk <hjk121@nokiamail.com> | 2014-12-12 15:33:16 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-12-15 17:23:48 +0100 |
commit | aff13fdf27b50dff9919fb45ac7703fc851174b1 (patch) | |
tree | 94de1406c69330abda1413a29c377812bc9dd333 /src/plugins/debugger/debuggerengine.cpp | |
parent | 8f7bd19600a03427cac095d9f7937a103a158bb9 (diff) | |
download | qt-creator-aff13fdf27b50dff9919fb45ac7703fc851174b1.tar.gz |
Debugger: Make DebuggerEngine internal
Expose less of debugger internals to the device plugins.
Change-Id: Ie78756b033fae3fe02bff92eadf26b7319990605
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/debugger/debuggerengine.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerengine.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index a89eb6e837..e89a20a3a8 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -99,18 +99,6 @@ const char PrefixDebugExecutable[] = "DebuggedExecutable"; namespace Debugger { -Internal::Location::Location(const StackFrame &frame, bool marker) -{ - init(); - m_fileName = frame.file; - m_lineNumber = frame.line; - m_needsMarker = marker; - m_functionName = frame.function; - m_hasDebugInfo = frame.isUsable(); - m_address = frame.address; - m_from = frame.from; -} - QDebug operator<<(QDebug d, DebuggerState state) { //return d << DebuggerEngine::stateName(state) << '(' << int(state) << ')'; @@ -133,6 +121,20 @@ QDebug operator<<(QDebug str, const DebuggerStartParameters &sp) return str; } +namespace Internal { + +Location::Location(const StackFrame &frame, bool marker) +{ + init(); + m_fileName = frame.file; + m_lineNumber = frame.line; + m_needsMarker = marker; + m_functionName = frame.function; + m_hasDebugInfo = frame.isUsable(); + m_address = frame.address; + m_from = frame.from; +} + ////////////////////////////////////////////////////////////////////// // @@ -781,6 +783,7 @@ void DebuggerEngine::notifyInferiorSetupOk() #ifdef WITH_BENCHMARK CALLGRIND_START_INSTRUMENTATION; #endif + aboutToNotifyInferiorSetupOk(); showMessage(_("NOTE: INFERIOR SETUP OK")); QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << this << state()); setState(InferiorSetupOk); @@ -1903,6 +1906,7 @@ void DebuggerEngine::validateExecutable(DebuggerStartParameters *sp) } } +} // namespace Internal } // namespace Debugger #include "debuggerengine.moc" |