Commit 445e409d authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

improve the windows thread info parsing regexp

fixes interrupting processes with some versions of gdb
parent 220907b2
......@@ -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 ="consolestreamoutput").data();
if (re.indexIn(data) != -1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment