diff options
author | hjk <qtc-committer@nokia.com> | 2012-05-29 12:16:34 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-05-30 11:31:29 +0200 |
commit | d982b216ff859c42e6e23651f48df525c828e7b5 (patch) | |
tree | 8266ee1c166526d9eab62152117285b16d07444d /src/plugins/debugger/watchutils.h | |
parent | 6f5e48be47f501d6c0492c5417b622251b5111c2 (diff) | |
download | qt-creator-d982b216ff859c42e6e23651f48df525c828e7b5.tar.gz |
debugger: rework dumping arrays of plain data
Simple array data can be fetched in one go.
The "normal" way gdb asks the server for contents is one item
at a time, at ~3ms per round trip. Now we get 2000 in 200ms.
This also introduces a re-usable readRawMemory function and
removes a few checkAccess calls which will be triggered anyways.
Change-Id: Ic07a3d6593fd2ea45f7a8058509118fe22a845bb
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/watchutils.h')
-rw-r--r-- | src/plugins/debugger/watchutils.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchutils.h b/src/plugins/debugger/watchutils.h index d77f943ad2..77b4eeefe8 100644 --- a/src/plugins/debugger/watchutils.h +++ b/src/plugins/debugger/watchutils.h @@ -72,7 +72,13 @@ enum DebuggerEncoding Hex2EncodedLocal8BitWithQuotes = 13, JulianDate = 14, MillisecondsSinceMidnight = 15, - JulianDateAndMillisecondsSinceMidnight = 16 + JulianDateAndMillisecondsSinceMidnight = 16, + Hex2EncodedInt1 = 17, + Hex2EncodedInt2 = 18, + Hex2EncodedInt4 = 19, + Hex2EncodedInt8 = 20, + Hex2EncodedFloat4 = 21, + Hex2EncodedFloat8 = 22 }; bool isEditorDebuggable(Core::IEditor *editor); @@ -103,6 +109,9 @@ QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos, QString cppFunctionAt(const QString &fileName, int line); // Decode string data as returned by the dumper helpers. QString decodeData(const QByteArray &baIn, int encoding); +// Decode string data as returned by the dumper helpers. +void decodeArray(WatchData *list, const WatchData &tmplate, + const QByteArray &rawData, int encoding); // Get variables that are not initialized at a certain line // of a function from the code model. Shadowed variables will |