aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2017-03-29 13:19:09 +0200
committerDavid Schulz <david.schulz@qt.io>2017-03-29 12:39:25 +0000
commit68ac850fe674549b171c57ca1ba6d492c6deb556 (patch)
tree8884042415d22fc9e2e9fd3e7659782070e77fb0
parente0cb69745b1240480188e21720a52d7c86ecbc26 (diff)
Debugger: Fix command setting active frame
Using this command without prefix and with the 0n decimal prefix resulted in unreliable frame selection. Last chance is the hexadecimal prefix. Change-Id: I935d88849eb541534d4f311ac6059bcd35aee62c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/debugger/cdb/cdbengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 2692cdf759..3531e882a6 100644
--- a/src/plugins/debugger/cdb/cdbengine.cpp
+++ b/src/plugins/debugger/cdb/cdbengine.cpp
@@ -1210,7 +1210,7 @@ void CdbEngine::activateFrame(int index)
stackHandler()->setCurrentIndex(index);
gotoLocation(frame);
if (m_pythonVersion > 0x030000)
- runCommand({".frame " + QString::number(index), NoFlags});
+ runCommand({".frame 0x" + QString::number(index, 16), NoFlags});
updateLocals();
}