forked from qt-creator/qt-creator
Debugger: Fix gdb debugging without terminal
Amends 373886bc21
.
Change-Id: I200391d702dc447508b52a9a3f210d08626b1bbf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1450,7 +1450,7 @@ void GdbEngine::handleStop2(const GdbMi &data)
|
|||||||
|
|
||||||
void GdbEngine::handleStop3()
|
void GdbEngine::handleStop3()
|
||||||
{
|
{
|
||||||
if (terminal() && state() != InferiorRunOk) {
|
if (!terminal() || state() != InferiorRunOk) {
|
||||||
DebuggerCommand cmd("-thread-info", Discardable);
|
DebuggerCommand cmd("-thread-info", Discardable);
|
||||||
cmd.callback = CB(handleThreadInfo);
|
cmd.callback = CB(handleThreadInfo);
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
|
Reference in New Issue
Block a user