aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/stackhandler.h
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-10-08 16:19:57 +0200
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-10-09 05:19:45 +0000
commit525c33f9991766342b41a0518b534836dc60ed69 (patch)
tree33f0bb24beeae02eb71e85c46e08943a033f0133 /src/plugins/debugger/stackhandler.h
parentea39476ef2c0017f54021693ba545117ad53afa6 (diff)
Debugger: Infrastructure for reworked native mixed debugging
- Remove old experimental native mixed approach. - Move some common stack parsing to Stackhandler. - Mark gdbbridge.py debug output explicitly to remove it from actual reponse handling New native mixed needs QtDeclarative changes and QTC_DEBUGGER_NATIVE_MIXED=1 for now. Change-Id: I09eed1da51cea878636d36756015b7bfaed34203 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/stackhandler.h')
-rw-r--r--src/plugins/debugger/stackhandler.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/debugger/stackhandler.h b/src/plugins/debugger/stackhandler.h
index 0713042dc15..3607eb7d6c4 100644
--- a/src/plugins/debugger/stackhandler.h
+++ b/src/plugins/debugger/stackhandler.h
@@ -38,6 +38,8 @@
namespace Debugger {
namespace Internal {
+class DebuggerEngine;
+
enum StackColumns
{
StackLevelColumn,
@@ -48,18 +50,12 @@ enum StackColumns
StackColumnCount
};
-////////////////////////////////////////////////////////////////////////
-//
-// StackModel
-//
-////////////////////////////////////////////////////////////////////////
-
class StackHandler : public QAbstractTableModel
{
Q_OBJECT
public:
- StackHandler();
+ explicit StackHandler(DebuggerEngine *engine);
~StackHandler();
void setFrames(const StackFrames &frames, bool canExpand = false);
@@ -72,6 +68,7 @@ public:
const StackFrame &frameAt(int index) const { return m_stackFrames.at(index); }
int stackSize() const { return m_stackFrames.size(); }
quint64 topAddress() const { return m_stackFrames.at(0).address; }
+ void setAllFrames(const GdbMi &frames, bool canExpand);
// Called from StackHandler after a new stack list has been received
void removeAll();
@@ -93,6 +90,7 @@ private:
Qt::ItemFlags flags(const QModelIndex &index) const;
Q_SLOT void resetModel() { beginResetModel(); endResetModel(); }
+ DebuggerEngine *m_engine;
StackFrames m_stackFrames;
int m_currentIndex;
const QVariant m_positionIcon;