forked from qt-creator/qt-creator
Debugger: move MI decoding to debuggerprotocol.{h,cpp}
Change-Id: I9d2eaf43b66f0db74ba2584157d6df8280d76652 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -51,49 +51,6 @@ namespace Internal {
|
||||
class WatchData;
|
||||
class GdbMi;
|
||||
|
||||
// Keep in sync with dumper.py
|
||||
enum DebuggerEncoding
|
||||
{
|
||||
Unencoded8Bit = 0,
|
||||
Base64Encoded8BitWithQuotes = 1,
|
||||
Base64Encoded16BitWithQuotes = 2,
|
||||
Base64Encoded32BitWithQuotes = 3,
|
||||
Base64Encoded16Bit = 4,
|
||||
Base64Encoded8Bit = 5,
|
||||
Hex2EncodedLatin1WithQuotes = 6,
|
||||
Hex4EncodedLittleEndianWithQuotes = 7,
|
||||
Hex8EncodedLittleEndianWithQuotes = 8,
|
||||
Hex2EncodedUtf8WithQuotes = 9,
|
||||
Hex8EncodedBigEndian = 10,
|
||||
Hex4EncodedBigEndianWithQuotes = 11,
|
||||
Hex4EncodedLittleEndianWithoutQuotes = 12,
|
||||
Hex2EncodedLocal8BitWithQuotes = 13,
|
||||
JulianDate = 14,
|
||||
MillisecondsSinceMidnight = 15,
|
||||
JulianDateAndMillisecondsSinceMidnight = 16,
|
||||
Hex2EncodedInt1 = 17,
|
||||
Hex2EncodedInt2 = 18,
|
||||
Hex2EncodedInt4 = 19,
|
||||
Hex2EncodedInt8 = 20,
|
||||
Hex2EncodedUInt1 = 21,
|
||||
Hex2EncodedUInt2 = 22,
|
||||
Hex2EncodedUInt4 = 23,
|
||||
Hex2EncodedUInt8 = 24,
|
||||
Hex2EncodedFloat4 = 25,
|
||||
Hex2EncodedFloat8 = 26
|
||||
};
|
||||
|
||||
// Keep in sync with dumper.py, symbolgroupvalue.cpp of CDB
|
||||
enum DebuggerDisplay {
|
||||
StopDisplay = 0,
|
||||
DisplayImageData = 1,
|
||||
DisplayUtf16String = 2,
|
||||
DisplayImageFile = 3,
|
||||
DisplayProcess = 4,
|
||||
DisplayLatin1String = 5,
|
||||
DisplayUtf8String = 6
|
||||
};
|
||||
|
||||
bool isEditorDebuggable(Core::IEditor *editor);
|
||||
QByteArray dotEscape(QByteArray str);
|
||||
QString currentTime();
|
||||
@@ -114,8 +71,6 @@ bool isIntType(const QByteArray &type);
|
||||
|
||||
QString formatToolTipAddress(quint64 a);
|
||||
|
||||
QString quoteUnprintableLatin1(const QByteArray &ba);
|
||||
|
||||
// Editor tooltip support
|
||||
bool isCppEditor(Core::IEditor *editor);
|
||||
QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos,
|
||||
@@ -124,8 +79,6 @@ QString removeObviousSideEffects(const QString &exp);
|
||||
QString fixCppExpression(const QString &exp);
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user