Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Hunger
qt-creator
Commits
3b280a3a
Commit
3b280a3a
authored
Sep 30, 2009
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: fix 'Detach debugger' action
parent
163150e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
src/plugins/debugger/debuggermanager.cpp
src/plugins/debugger/debuggermanager.cpp
+0
-2
src/plugins/debugger/debuggerplugin.cpp
src/plugins/debugger/debuggerplugin.cpp
+4
-3
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+5
-1
No files found.
src/plugins/debugger/debuggermanager.cpp
View file @
3b280a3a
...
...
@@ -1695,8 +1695,6 @@ void DebuggerManager::setState(DebuggerState state)
d
->
m_actions
.
runToFunctionAction
->
setEnabled
(
stopped
);
d
->
m_actions
.
jumpToLineAction
->
setEnabled
(
stopped
);
d
->
m_actions
.
nextAction
->
setEnabled
(
stopped
);
//showStatusMessage(QString("stoppable: %1, running: %2")
// .arg(stoppable).arg(running));
emit
stateChanged
(
d
->
m_state
);
const
bool
notbusy
=
state
==
InferiorStopped
||
state
==
DebuggerNotReady
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
3b280a3a
...
...
@@ -898,6 +898,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
connect
(
theDebuggerAction
(
SettingsDialog
),
SIGNAL
(
triggered
()),
this
,
SLOT
(
showSettingsDialog
()));
handleStateChanged
(
DebuggerNotReady
);
return
true
;
}
...
...
@@ -1120,8 +1121,8 @@ void DebuggerPlugin::handleStateChanged(int state)
const
bool
starting
=
state
==
EngineStarting
;
//const bool running = state == InferiorRunning;
const
bool
ready
=
state
==
InferiorStopped
&&
m_manager
->
startParameters
()
->
startMode
!=
AttachCore
;
const
bool
detachable
=
state
==
InferiorStopped
&&
m_manager
->
startParameters
()
->
startMode
!=
AttachCore
;
m_startExternalAction
->
setEnabled
(
!
started
&&
!
starting
);
m_attachExternalAction
->
setEnabled
(
!
started
&&
!
starting
);
...
...
@@ -1131,7 +1132,7 @@ void DebuggerPlugin::handleStateChanged(int state)
m_attachCoreAction
->
setEnabled
(
!
started
&&
!
starting
);
#endif
m_startRemoteAction
->
setEnabled
(
!
started
&&
!
starting
);
m_detachAction
->
setEnabled
(
ready
);
m_detachAction
->
setEnabled
(
detachable
);
}
void
DebuggerPlugin
::
writeSettings
()
const
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
3b280a3a
...
...
@@ -1444,7 +1444,11 @@ void GdbEngine::shutdown()
void
GdbEngine
::
detachDebugger
()
{
QTC_ASSERT
(
startMode
()
==
AttachExternal
,
/**/
);
QTC_ASSERT
(
state
()
==
InferiorStopped
,
/**/
);
QTC_ASSERT
(
startMode
()
!=
AttachCore
,
/**/
);
postCommand
(
_
(
"detach"
));
setState
(
InferiorShuttingDown
);
setState
(
InferiorShutDown
);
shutdown
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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