Commit 6bfe8c88 authored by hjk's avatar hjk

debugger: Fix memory cache cleanup for trk adapters.

Reviewed-by: Friedemann Kleint
Reviewed-by: Pawel Polanski
parent d89604bb
......@@ -203,9 +203,10 @@ Snapshot::Snapshot()
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())) {
MEMORY_DEBUG("KEEPING READ-ONLY RANGE" << it.key());
++it;
} else {
it = memory.erase(it);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment