forked from qt-creator/qt-creator
debugger: Fix memory cache cleanup for trk adapters.
Reviewed-by: Friedemann Kleint Reviewed-by: Pawel Polanski
This commit is contained in:
@@ -203,9 +203,10 @@ Snapshot::Snapshot()
|
|||||||
|
|
||||||
void Snapshot::reset()
|
void Snapshot::reset()
|
||||||
{
|
{
|
||||||
for (Memory::Iterator it = memory.begin(); it != memory.end(); ++it) {
|
for (Memory::Iterator it = memory.begin(); it != memory.end(); ) {
|
||||||
if (isReadOnly(it.key())) {
|
if (isReadOnly(it.key())) {
|
||||||
MEMORY_DEBUG("KEEPING READ-ONLY RANGE" << it.key());
|
MEMORY_DEBUG("KEEPING READ-ONLY RANGE" << it.key());
|
||||||
|
++it;
|
||||||
} else {
|
} else {
|
||||||
it = memory.erase(it);
|
it = memory.erase(it);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user