1
0
Fork 0

DBG: don't clear patches unless the debuggee is terminating (fixes #1419)

This commit is contained in:
mrexodia 2017-01-18 14:40:46 +01:00
parent 233733eda9
commit 0b18f65653
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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