DBG: don't clear patches unless the debuggee is terminating (fixes #1419)
This commit is contained in:
parent
233733eda9
commit
0b18f65653
|
|
@ -251,10 +251,10 @@ void DbLoad(DbLoadSaveType loadType, const char* dbfile)
|
|||
void DbClose()
|
||||
{
|
||||
DbSave(DbLoadSaveType::All);
|
||||
DbClear();
|
||||
DbClear(true);
|
||||
}
|
||||
|
||||
void DbClear()
|
||||
void DbClear(bool terminating)
|
||||
{
|
||||
CommentClear();
|
||||
LabelClear();
|
||||
|
|
@ -267,8 +267,10 @@ void DbClear()
|
|||
TraceRecord.clear();
|
||||
BpClear();
|
||||
WatchClear();
|
||||
PatchClear();
|
||||
GuiSetDebuggeeNotes("");
|
||||
|
||||
if(terminating)
|
||||
PatchClear();
|
||||
}
|
||||
|
||||
void DbSetPath(const char* Directory, const char* ModulePath)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ enum class DbLoadSaveType
|
|||
void DbSave(DbLoadSaveType saveType, const char* dbfile = nullptr, bool disablecompression = false);
|
||||
void DbLoad(DbLoadSaveType loadType, const char* dbfile = nullptr);
|
||||
void DbClose();
|
||||
void DbClear();
|
||||
void DbClear(bool terminating = false);
|
||||
void DbSetPath(const char* Directory, const char* ModulePath);
|
||||
|
||||
#endif // _DATABASE_H
|
||||
Loading…
Reference in New Issue