Commit 904fc6c3 authored by hjk's avatar hjk
Browse files

debugger: enable register view for core dumps

parent 25f0bd7c
......@@ -2814,7 +2814,7 @@ void GdbEngine::activateSnapshot2()
void GdbEngine::reloadRegisters()
{
if (state() != InferiorStopped)
if (state() != InferiorStopped && state() != InferiorUnrunnable)
return;
if (!m_registerNamesListed) {
postCommand("-data-list-register-names", CB(handleRegisterListNames));
......
......@@ -169,7 +169,9 @@ void RegisterWindow::contextMenuEvent(QContextMenuEvent *ev)
const bool actionsEnabled = m_manager->debuggerActionsEnabled();
QAction *actReload = menu.addAction(tr("Reload register listing"));
actReload->setEnabled(engineCapabilities & RegisterCapability);
actReload->setEnabled((engineCapabilities & RegisterCapability)
&& (m_manager->state() == InferiorStopped
|| m_manager->state() == InferiorUnrunnable));
menu.addSeparator();
......@@ -181,7 +183,8 @@ void RegisterWindow::contextMenuEvent(QContextMenuEvent *ev)
actShowMemory->setEnabled(false);
} else {
actShowMemory->setText(tr("Open memory editor at %1").arg(address));
actShowMemory->setEnabled(actionsEnabled && (engineCapabilities & ShowMemoryCapability));
actShowMemory->setEnabled(actionsEnabled
&& (engineCapabilities & ShowMemoryCapability));
}
menu.addSeparator();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment