forked from qt-creator/qt-creator
Debugger: Rework step{In,Out,Over} handling
Main menu action pass operation to current engine, everything else
is handled there.
Combine execute{Step,Next} and execute{Step,Next}I functions.
Implementation were mostly similar, in some cases unneeded
(the instruction-wise version e.g. for Python)
Drop GDB-isms 'step', 'next' in favor of 'step in' and 'step over'.
Change-Id: I232232bc7a67d9d297a74f1c81dc43be96787d34
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -167,14 +167,7 @@ void PdbEngine::interruptInferior()
|
||||
interruptProcess(m_proc.processId(), GdbEngineType, &error);
|
||||
}
|
||||
|
||||
void PdbEngine::executeStep()
|
||||
{
|
||||
notifyInferiorRunRequested();
|
||||
notifyInferiorRunOk();
|
||||
postDirectCommand("step");
|
||||
}
|
||||
|
||||
void PdbEngine::executeStepI()
|
||||
void PdbEngine::executeStepIn(bool)
|
||||
{
|
||||
notifyInferiorRunRequested();
|
||||
notifyInferiorRunOk();
|
||||
@@ -188,14 +181,7 @@ void PdbEngine::executeStepOut()
|
||||
postDirectCommand("return");
|
||||
}
|
||||
|
||||
void PdbEngine::executeNext()
|
||||
{
|
||||
notifyInferiorRunRequested();
|
||||
notifyInferiorRunOk();
|
||||
postDirectCommand("next");
|
||||
}
|
||||
|
||||
void PdbEngine::executeNextI()
|
||||
void PdbEngine::executeStepOver(bool)
|
||||
{
|
||||
notifyInferiorRunRequested();
|
||||
notifyInferiorRunOk();
|
||||
|
||||
Reference in New Issue
Block a user