Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
904fc6c3
Commit
904fc6c3
authored
Feb 11, 2010
by
hjk
Browse files
debugger: enable register view for core dumps
parent
25f0bd7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
904fc6c3
...
...
@@ -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
));
...
...
src/plugins/debugger/registerwindow.cpp
View file @
904fc6c3
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment