Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
eab55aac
Commit
eab55aac
authored
Jul 08, 2010
by
hjk
Browse files
debugger: move state change to EngineStarting into the base class
parent
c8fae112
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbdebugengine.cpp
View file @
eab55aac
...
...
@@ -376,13 +376,12 @@ void CdbDebugEngine::startupChecks()
void
CdbDebugEngine
::
startDebugger
()
{
setState
(
EngineStarting
,
Q_FUNC_INFO
,
__LINE__
);
QTC_ASSERT
(
state
()
==
EngineStarting
,
qDebug
()
<<
state
()
);
const
DebuggerStartParameters
&
sp
=
startParameters
();
if
(
debugCDBExecution
)
qDebug
()
<<
"startDebugger"
;
CdbCore
::
BreakPoint
::
clearNormalizeFileNameCache
();
startupChecks
();
setState
(
AdapterStarting
,
Q_FUNC_INFO
,
__LINE__
);
m_d
->
checkVersion
();
if
(
m_d
->
m_hDebuggeeProcess
)
{
warning
(
QLatin1String
(
"Internal error: Attempt to start debugger while another process is being debugged."
));
...
...
src/plugins/debugger/debuggerengine.cpp
View file @
eab55aac
...
...
@@ -635,6 +635,7 @@ void DebuggerEngine::startDebugger(DebuggerRunControl *runControl)
theDebuggerAction
(
OperateByInstruction
)
->
setEnabled
(
engineCapabilities
&
DisassemblerCapability
);
setState
(
EngineStarting
);
startDebugger
();
}
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
eab55aac
...
...
@@ -1762,8 +1762,7 @@ AbstractGdbAdapter *GdbEngine::createAdapter()
void
GdbEngine
::
startDebugger
()
{
//qDebug() << "GDB START DEBUGGER";
QTC_ASSERT
(
state
()
==
DebuggerNotReady
,
setState
(
DebuggerNotReady
));
setState
(
EngineStarting
);
QTC_ASSERT
(
state
()
==
EngineStarting
,
qDebug
()
<<
state
());
QTC_ASSERT
(
m_debuggingHelperState
==
DebuggingHelperUninitialized
,
/**/
);
QTC_ASSERT
(
m_gdbAdapter
==
0
,
/**/
);
...
...
src/plugins/debugger/pdb/pdbengine.cpp
View file @
eab55aac
...
...
@@ -140,7 +140,7 @@ void PdbEngine::exitDebugger()
void
PdbEngine
::
startDebugger
()
{
setState
(
EngineStarting
);
QTC_ASSERT
(
state
()
==
EngineStarting
,
qDebug
()
<<
state
()
);
m_scriptFileName
=
QFileInfo
(
startParameters
().
executable
).
absoluteFilePath
();
QFile
scriptFile
(
m_scriptFileName
);
...
...
src/plugins/debugger/qml/qmlengine.cpp
View file @
eab55aac
...
...
@@ -228,8 +228,7 @@ const int serverPort = 3768;
void
QmlEngine
::
startDebugger
()
{
QTC_ASSERT
(
state
()
==
DebuggerNotReady
,
setState
(
DebuggerNotReady
));
setState
(
EngineStarting
);
QTC_ASSERT
(
state
()
==
EngineStarting
,
qDebug
()
<<
state
());
const
DebuggerStartParameters
&
sp
=
startParameters
();
const
int
pos
=
sp
.
remoteChannel
.
indexOf
(
QLatin1Char
(
':'
));
const
QString
host
=
sp
.
remoteChannel
.
left
(
pos
);
...
...
src/plugins/debugger/script/scriptengine.cpp
View file @
eab55aac
...
...
@@ -231,9 +231,8 @@ void ScriptEngine::exitDebugger()
void
ScriptEngine
::
startDebugger
()
{
QTC_ASSERT
(
state
()
==
EngineStarting
,
qDebug
()
<<
state
());
showMessage
(
_
(
"STARTING SCRIPT DEBUGGER"
),
LogMisc
);
QTC_ASSERT
(
state
()
==
DebuggerNotReady
,
setState
(
DebuggerNotReady
));
setState
(
EngineStarting
);
if
(
m_scriptEngine
.
isNull
())
m_scriptEngine
=
Core
::
ICore
::
instance
()
->
scriptManager
()
->
scriptEngine
();
if
(
!
m_scriptAgent
)
...
...
src/plugins/debugger/tcf/tcfengine.cpp
View file @
eab55aac
...
...
@@ -202,6 +202,7 @@ void TcfEngine::exitDebugger()
void
TcfEngine
::
startDebugger
()
{
QTC_ASSERT
(
state
()
==
EngineStarting
,
qDebug
()
<<
state
());
setState
(
InferiorRunningRequested
);
showStatusMessage
(
tr
(
"Running requested..."
),
5000
);
const
DebuggerStartParameters
&
sp
=
startParameters
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment