diff options
author | hjk <qtc-committer@nokia.com> | 2010-12-21 13:34:59 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-12-21 13:36:28 +0100 |
commit | 63eaf1e132286c3e29a16b433bf3d06e7c648324 (patch) | |
tree | fa017f138fae44785306632929ddbbde5b76f361 /src/plugins/debugger/stackwindow.cpp | |
parent | dc921cc5408fe8845c32918c1e8eab65f3e01f28 (diff) | |
download | qt-creator-63eaf1e132286c3e29a16b433bf3d06e7c648324.tar.gz |
debugger: add an option to load "missing" symbols for current stack
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r-- | src/plugins/debugger/stackwindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index ad97a8c58e..6c9c5efa7a 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -143,6 +143,10 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) actShowDisassembler->setEnabled(engineCapabilities & DisassemblerCapability); } + QAction *actLoadSymbols = 0; + if (engineCapabilities & ShowModuleSymbolsCapability) + actLoadSymbols = menu.addAction(tr("Try to Load Unknown Symbols")); + menu.addSeparator(); #if 0 // @TODO: not implemented menu.addAction(debuggerCore()->action(UseToolTipsInStackView)); @@ -162,7 +166,9 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) QAction *act = menu.exec(ev->globalPos()); - if (act == actCopyContents) + if (!act) + ; + else if (act == actCopyContents) copyContentsToClipboard(); else if (act == actAdjust) resizeColumnsToContents(); @@ -172,6 +178,8 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) engine->openMemoryView(address); else if (act == actShowDisassembler) engine->openDisassemblerView(frame); + else if (act == actLoadSymbols) + engine->loadSymbolsForStack(); } void StackWindow::copyContentsToClipboard() |