forked from qt-creator/qt-creator
Debugger: Fix crash in stack frame layout display.
The option is also enabled when the index is invalid. Task-number: QTCREATORBUG-5650 Change-Id: If1efb900d29724e5c43db1589c797197fae67bd2 Reviewed-on: http://codereview.qt.nokia.com/2342 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
@@ -416,6 +416,7 @@ static inline void addStackLayoutMemoryView(DebuggerEngine *engine,
|
||||
QWidget *parent)
|
||||
{
|
||||
typedef QPair<quint64, QString> RegisterValueNamePair;
|
||||
QTC_ASSERT(engine && m, return ;)
|
||||
|
||||
// Determine suitable address range from locals
|
||||
quint64 start = Q_UINT64_C(0xFFFFFFFFFFFFFFFF);
|
||||
@@ -895,7 +896,7 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
} else if (act == actOpenMemoryViewAtPointerValue) {
|
||||
addVariableMemoryView(currentEngine(), true, mi0, true, ev->globalPos(), this);
|
||||
} else if (act == actOpenMemoryEditorStackLayout) {
|
||||
addStackLayoutMemoryView(currentEngine(), false, mi0.model(), ev->globalPos(), this);
|
||||
addStackLayoutMemoryView(currentEngine(), false, model(), ev->globalPos(), this);
|
||||
} else if (act == actSetWatchpointAtVariableAddress) {
|
||||
setWatchpointAtAddress(address, size);
|
||||
} else if (act == actSetWatchpointAtPointerValue) {
|
||||
|
||||
Reference in New Issue
Block a user