summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-01-31 12:31:08 +0100
committerhjk <hjk@qt.io>2019-02-01 13:50:11 +0000
commit18f1a8d759073e4d8cddfaa99a77c72f21efa5c3 (patch)
tree233118fef9f41a9a8b05d1c01162e054888f3e73
parent0aa8a98afa964d9ebf819d157ed9d600bff3633f (diff)
downloadqt-creator-18f1a8d759073e4d8cddfaa99a77c72f21efa5c3.tar.gz
Debugger: Fix gdb detaching
Too much cleverness in python command detection: "attach" is parsed as possible Python command. Make it explicit that it is not. Task-number: QTCREATORBUG-21908 Change-Id: I68444bccfb485ef1befe81b4b6b13243c2c8a500 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 2ecbf28534..283850d239 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -1736,7 +1736,7 @@ void GdbEngine::detachDebugger()
{
CHECK_STATE(InferiorStopOk);
QTC_CHECK(runParameters().startMode != AttachCore);
- DebuggerCommand cmd("detach", ExitRequest);
+ DebuggerCommand cmd("detach", NativeCommand | ExitRequest);
cmd.callback = [this](const DebuggerResponse &) {
CHECK_STATE(InferiorStopOk);
notifyInferiorExited();