Skip to content
GitLab
Menu
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
dfe15b53
Commit
dfe15b53
authored
Sep 07, 2010
by
hjk
Browse files
debugger: second attempt at silencing the watchdog after gdb-exit
parent
3724b59e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
dfe15b53
...
@@ -791,6 +791,8 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
...
@@ -791,6 +791,8 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
return
;
return
;
}
}
QTC_ASSERT
(
gdbProc
()
->
state
()
==
QProcess
::
Running
,
/**/
);
++
currentToken
();
++
currentToken
();
GdbCommand
cmd
=
cmd0
;
GdbCommand
cmd
=
cmd0
;
cmd
.
postTime
=
QTime
::
currentTime
();
cmd
.
postTime
=
QTime
::
currentTime
();
...
@@ -809,7 +811,7 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
...
@@ -809,7 +811,7 @@ void GdbEngine::flushCommand(const GdbCommand &cmd0)
// sent and a response could be retrieved. We don't want the watchdog
// sent and a response could be retrieved. We don't want the watchdog
// to bark in that case since the only possible outcome is a dead
// to bark in that case since the only possible outcome is a dead
// process anyway.
// process anyway.
if
(
cmd
.
command
!=
"-gdb-exit"
)
if
(
!
cmd
.
command
.
endsWith
(
"-gdb-exit"
)
)
m_commandTimer
->
start
();
m_commandTimer
->
start
();
//if (cmd.flags & LosesChild)
//if (cmd.flags & LosesChild)
...
@@ -1665,7 +1667,13 @@ void GdbEngine::notifyAdapterShutdownOk()
...
@@ -1665,7 +1667,13 @@ void GdbEngine::notifyAdapterShutdownOk()
showMessage
(
_
(
"INITIATE GDBENGINE SHUTDOWN IN STATE %1, PROC: %2"
)
showMessage
(
_
(
"INITIATE GDBENGINE SHUTDOWN IN STATE %1, PROC: %2"
)
.
arg
(
lastGoodState
()).
arg
(
gdbProc
()
->
state
()));
.
arg
(
lastGoodState
()).
arg
(
gdbProc
()
->
state
()));
m_commandsDoneCallback
=
0
;
m_commandsDoneCallback
=
0
;
postCommand
(
"-gdb-exit"
,
GdbEngine
::
ExitRequest
,
CB
(
handleGdbExit
));
if
(
gdbProc
()
->
state
()
==
QProcess
::
Running
)
{
postCommand
(
"-gdb-exit"
,
GdbEngine
::
ExitRequest
,
CB
(
handleGdbExit
));
}
else
{
showMessage
(
_
(
"GDB NOT REALLY RUNNING; KILLING IT"
));
gdbProc
()
->
kill
();
notifyEngineShutdownFailed
();
}
}
}
void
GdbEngine
::
handleGdbExit
(
const
GdbResponse
&
response
)
void
GdbEngine
::
handleGdbExit
(
const
GdbResponse
&
response
)
...
...
Write
Preview
Supports
Markdown
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