summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/gdbengine.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-05 13:50:41 +0100
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-05 15:26:23 +0100
commit445e409db75bb83e03efa7acde2de36d24958bc3 (patch)
tree3cee78c3bf9b243b4111d573dba0d3bc632753df /src/plugins/debugger/gdbengine.cpp
parent220907b238720a3f9215347e334d9dbbb706da1e (diff)
downloadqt-creator-445e409db75bb83e03efa7acde2de36d24958bc3.tar.gz
improve the windows thread info parsing regexp
fixes interrupting processes with some versions of gdb
Diffstat (limited to 'src/plugins/debugger/gdbengine.cpp')
-rw-r--r--src/plugins/debugger/gdbengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 7fde9b3023..5609de169d 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -1045,7 +1045,7 @@ void GdbEngine::handleInfoThreads(const GdbResultRecord &record)
// FIXME: use something more robust
// WIN: * 3 Thread 2312.0x4d0 0x7c91120f in ?? ()
// LINUX: * 1 Thread 0x7f466273c6f0 (LWP 21455) 0x0000000000404542 in ...
- QRegExp re(QLatin1String("Thread (\\d+)\\.0x.* in"));
+ QRegExp re(QLatin1String("^\\*? +\\d+ +[Tt]hread (\\d+)\\.0x.* in"));
QString data = record.data.findChild("consolestreamoutput").data();
if (re.indexIn(data) != -1)
maybeHandleInferiorPidChanged(re.cap(1));