aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/stackframe.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-10-16 16:26:28 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-10-16 16:26:28 +0200
commit25ee70bb24bec71f5392a441a923c7b3c1caf4f7 (patch)
treecebc351c8ae2add0a78cd8f2677cd6c6c4455fda /src/plugins/debugger/stackframe.h
parentc79476e72f86e9e7db529962079a351903972789 (diff)
Debugger: Use the code model to detect unitialized variables.
This should save debugger round trips and crashes in the debugging helpers. Add respective option to debugging helper option page, defaulting to true.On this occasion, make CDB detect shadowed variables correctly and display them as "<shadowed n>" as does the Gdb engine by reversing the direction in which CdbSymbolGroupContext::populateINameIndexMap works. Rubber-stamped-by: hjk <qtc-committer@nokia.com>
Diffstat (limited to 'src/plugins/debugger/stackframe.h')
-rw-r--r--src/plugins/debugger/stackframe.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/stackframe.h b/src/plugins/debugger/stackframe.h
index 3a0e415e1f2..8e5771f7060 100644
--- a/src/plugins/debugger/stackframe.h
+++ b/src/plugins/debugger/stackframe.h
@@ -33,12 +33,17 @@
#include <QtCore/QString>
#include <QtCore/QMetaType>
+QT_BEGIN_NAMESPACE
+class QDebug;
+QT_END_NAMESPACE
+
namespace Debugger {
namespace Internal {
struct StackFrame
{
StackFrame();
+ void clear();
bool isUsable() const;
QString toToolTip() const;
QString toString() const;
@@ -52,6 +57,8 @@ struct StackFrame
QString address;
};
+QDebug operator<<(QDebug d, const StackFrame &);
+
} // namespace Internal
} // namespace Debugger