summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-03-06 10:15:26 +0100
committerhjk <hjk@qt.io>2020-03-06 10:58:24 +0000
commita7c05e5e113e9b10e09d395cfc0686ded9356453 (patch)
tree6ef4991ecfbd0f5f17fb44ad43b2115c1ae24395
parent8e47fc18a686525ac77bc565693b87b2e37e9735 (diff)
downloadqt-creator-a7c05e5e113e9b10e09d395cfc0686ded9356453.tar.gz
Debugger: Invalidate disassembler cache index after using it
Not before. Amends b3812bf94f. Change-Id: I3f8dd9f23adbbd56bb0d5d76a80a90fd9b7030b5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/debugger/disassembleragent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/disassembleragent.cpp b/src/plugins/debugger/disassembleragent.cpp
index d8a083b8d5..ff958b5d7a 100644
--- a/src/plugins/debugger/disassembleragent.cpp
+++ b/src/plugins/debugger/disassembleragent.cpp
@@ -238,8 +238,8 @@ void DisassemblerAgent::setLocation(const Location &loc)
// Refresh when not displaying a function and there is not sufficient
// context left past the address.
if (d->cache.at(index).first.endAddress - loc.address() < 24) {
- index = -1;
d->cache.removeAt(index);
+ index = -1;
}
}
if (index != -1) {