diff options
author | Friedemann Kleint <[email protected]> | 2011-04-19 12:17:48 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2011-04-19 12:19:23 +0200 |
commit | ed30a3f724b27178e5dba3975b550ad1d3461c03 (patch) | |
tree | 7394f202adbcb985ac4c40d0b9733691a81c6565 /src/plugins/debugger/stackwindow.cpp | |
parent | ce67924b731982da09eee311a4907ebf5d8b1d20 (diff) |
Debugger: Use bin editor widget for standalone-memory views.
Remove MemoryViewWidget/RegisterMemoryViewWidget
in favour of MemoryView/RegisterMemoryView based on the bin
editor widget.
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r-- | src/plugins/debugger/stackwindow.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index b16c2f74ad4..02d777db6d6 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -37,6 +37,7 @@ #include "debuggerconstants.h" #include "debuggercore.h" #include "debuggerengine.h" +#include "memoryagent.h" #include <utils/qtcassert.h> #include <utils/savedaction.h> @@ -169,9 +170,14 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) copyContentsToClipboard(); else if (act == actAdjust) resizeColumnsToContents(); - else if (act == actShowMemory) - engine->openMemoryView(address); - else if (act == actShowDisassembler) + else if (act == actShowMemory) { + const QString title = tr("Memory at Frame #%1 (%2) 0x%3)"). + arg(row).arg(frame.function).arg(address, 0, 16); + QList<MemoryMarkup> ml; + ml.push_back(MemoryMarkup(address, 1, QColor(Qt::blue).lighter(), + tr("Frame #%1 (%2)").arg(row).arg(frame.function))); + engine->openMemoryView(address, 0, ml, QPoint(), title); + } else if (act == actShowDisassembler) engine->openDisassemblerView(frame); else if (act == actLoadSymbols) engine->loadSymbolsForStack(); |