forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user