Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
aa97f43a
Commit
aa97f43a
authored
Oct 08, 2009
by
Oswald Buddenhagen
Browse files
rename m_continuationAfterDone => m_commandsDoneCallback for clarity
parent
70b3c729
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
aa97f43a
...
...
@@ -278,7 +278,7 @@ void GdbEngine::initializeVariables()
m_oldestAcceptableToken
=
-
1
;
m_outputCodec
=
QTextCodec
::
codecForLocale
();
m_pendingRequests
=
0
;
m_co
ntinuationAfterDone
=
0
;
m_co
mmandsDoneCallback
=
0
;
m_commandsToRunOnTemporaryBreak
.
clear
();
m_cookieForToken
.
clear
();
m_customOutputForToken
.
clear
();
...
...
@@ -841,9 +841,9 @@ void GdbEngine::handleResultRecord(const GdbResponse &response)
// An optimization would be requesting the continue immediately when the
// event loop is entered, and let individual commands have a flag to suppress
// that behavior.
if
(
m_co
ntinuationAfterDone
&&
m_cookieForToken
.
isEmpty
())
{
Co
ntinuation
cont
=
m_continuationAfterDone
;
m_co
ntinuationAfterDone
=
0
;
if
(
m_co
mmandsDoneCallback
&&
m_cookieForToken
.
isEmpty
())
{
Co
mmandsDoneCallback
cont
=
m_commandsDoneCallback
;
m_co
mmandsDoneCallback
=
0
;
(
this
->*
cont
)();
showStatusMessage
(
tr
(
"Continuing after temporary stop."
),
1000
);
}
else
{
...
...
@@ -1045,8 +1045,8 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
flushCommand
(
cmd
);
}
showStatusMessage
(
tr
(
"Processing queued commands."
),
1000
);
QTC_ASSERT
(
m_co
ntinuationAfterDone
==
0
,
/**/
);
m_co
ntinuationAfterDone
=
&
GdbEngine
::
continueInferior
;
QTC_ASSERT
(
m_co
mmandsDoneCallback
==
0
,
/**/
);
m_co
mmandsDoneCallback
=
&
GdbEngine
::
continueInferior
;
return
;
}
...
...
@@ -4089,9 +4089,9 @@ void GdbEngine::handleInferiorPrepared()
}
// Initial attempt to set breakpoints
QTC_ASSERT
(
m_co
ntinuationAfterDone
==
0
,
/**/
);
QTC_ASSERT
(
m_co
mmandsDoneCallback
==
0
,
/**/
);
showStatusMessage
(
tr
(
"Setting breakpoints..."
));
m_co
ntinuationAfterDone
=
&
GdbEngine
::
startInferior
;
m_co
mmandsDoneCallback
=
&
GdbEngine
::
startInferior
;
attemptBreakpointSynchronization
();
}
...
...
src/plugins/debugger/gdb/gdbengine.h
View file @
aa97f43a
...
...
@@ -409,9 +409,9 @@ private:
QString
m_currentFrame
;
QMap
<
QString
,
QString
>
m_varToType
;
typedef
void
(
GdbEngine
::*
Co
ntinuation
)();
typedef
void
(
GdbEngine
::*
Co
mmandsDoneCallback
)();
// function called after all previous responses have been received
Co
ntinuation
m_continuationAfterDone
;
Co
mmandsDoneCallback
m_commandsDoneCallback
;
void
startInferior
();
bool
m_modulesListOutdated
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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