mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
fix saving settings when debugging
This commit is contained in:
parent
cd1656fc30
commit
2bfa3b7a3f
@ -759,10 +759,15 @@ void CutterCore::setRegister(QString regName, QString regValue)
|
||||
|
||||
void CutterCore::startDebug()
|
||||
{
|
||||
if (!currentlyDebugging) {
|
||||
offsetPriorDebugging = getOffset();
|
||||
}
|
||||
cmd("ood");
|
||||
emit registersChanged();
|
||||
if (!currentlyDebugging) {
|
||||
emit changeDebugView();
|
||||
currentlyDebugging = true;
|
||||
}
|
||||
}
|
||||
|
||||
void CutterCore::stopDebug()
|
||||
@ -772,6 +777,7 @@ void CutterCore::stopDebug()
|
||||
cmd("dk 9; ds; e cfg.debug = false; oo");
|
||||
seek(offsetPriorDebugging);
|
||||
emit changeDefinedView();
|
||||
currentlyDebugging = false;
|
||||
}
|
||||
|
||||
void CutterCore::continueDebug()
|
||||
|
@ -600,6 +600,7 @@ private:
|
||||
RVA offsetPriorDebugging = RVA_INVALID;
|
||||
|
||||
QList<CutterPlugin*> plugins;
|
||||
bool currentlyDebugging = false;
|
||||
};
|
||||
|
||||
class ccClass : public CutterCore
|
||||
|
Loading…
Reference in New Issue
Block a user