summaryrefslogtreecommitdiff
path: root/src/libs/qtcreatorcdbext/symbolgroupvalue.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-04-05 15:00:15 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-04-05 15:00:15 +0200
commitd4da0fbd8511ca7176dded66cba5e33e133dc7f7 (patch)
treec00db1a2f2343d9f7345427b312816d9f8271e5d /src/libs/qtcreatorcdbext/symbolgroupvalue.h
parent7420daa4d39b39feb4f26bddeea61a3c50025543 (diff)
downloadqt-creator-d4da0fbd8511ca7176dded66cba5e33e133dc7f7.tar.gz
Debugger[CDB]: Simple dumpers for ScriptValue, QHostAddress, QProcess
Dump by reading raw memory for further types for whose private classes no symbolic information is available. Also fix dumping for pointer values, taking CDB's pointer/value duality into account.
Diffstat (limited to 'src/libs/qtcreatorcdbext/symbolgroupvalue.h')
-rw-r--r--src/libs/qtcreatorcdbext/symbolgroupvalue.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libs/qtcreatorcdbext/symbolgroupvalue.h b/src/libs/qtcreatorcdbext/symbolgroupvalue.h
index 81f251faad..e2374bc4c6 100644
--- a/src/libs/qtcreatorcdbext/symbolgroupvalue.h
+++ b/src/libs/qtcreatorcdbext/symbolgroupvalue.h
@@ -137,6 +137,12 @@ public:
std::string *errorMessage = 0);
static ULONG64 readPointerValue(CIDebugDataSpaces *ds, ULONG64 address,
std::string *errorMessage = 0);
+ static ULONG64 readUnsignedValue(CIDebugDataSpaces *ds,
+ ULONG64 address, ULONG debuggeeTypeSize, ULONG64 defaultValue = 0,
+ std::string *errorMessage = 0);
+ static double readDouble(CIDebugDataSpaces *ds,
+ ULONG64 address, double defaultValue = 0.0,
+ std::string *errorMessage = 0);
static unsigned pointerSize();
static unsigned intSize();
@@ -168,6 +174,11 @@ struct QtInfo
{ return QtInfo::prependModuleAndNameSpace(type, coreModule, nameSpace); }
std::string prependQtGuiModule(const std::string &type) const
{ return QtInfo::prependModuleAndNameSpace(type, guiModule, nameSpace); }
+ std::string prependQtNetworkModule(const std::string &type) const
+ { return QtInfo::prependModuleAndNameSpace(type, networkModule, nameSpace); }
+ std::string prependQtScriptModule(const std::string &type) const
+ { return QtInfo::prependModuleAndNameSpace(type, scriptModule, nameSpace); }
+
// Prepend module and namespace if missing with some smartness
// ('Foo' or -> 'nsp::Foo') => 'QtCored4!nsp::Foo'
static std::string prependModuleAndNameSpace(const std::string &type,
@@ -177,6 +188,8 @@ struct QtInfo
std::string nameSpace;
std::string coreModule;
std::string guiModule;
+ std::string networkModule;
+ std::string scriptModule;
// Fully qualified types with module and namespace
std::string qObjectType;
std::string qObjectPrivateType;