Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9157f12e
Commit
9157f12e
authored
Sep 29, 2009
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: fix pid parsing from gdb output on Mac
parent
03e96608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+4
-0
No files found.
src/plugins/debugger/gdb/gdbengine.cpp
View file @
9157f12e
...
@@ -514,11 +514,15 @@ void GdbEngine::handleResponse(const QByteArray &buff)
...
@@ -514,11 +514,15 @@ void GdbEngine::handleResponse(const QByteArray &buff)
static
QRegExp
re1
(
_
(
"New .hread 0x[0-9a-f]+
\\
(LWP ([0-9]*)
\\
)"
));
static
QRegExp
re1
(
_
(
"New .hread 0x[0-9a-f]+
\\
(LWP ([0-9]*)
\\
)"
));
// MinGW 6.8: [New thread 2437.0x435345]
// MinGW 6.8: [New thread 2437.0x435345]
static
QRegExp
re2
(
_
(
"New .hread ([0-9]+)
\\
.0x[0-9a-f]*"
));
static
QRegExp
re2
(
_
(
"New .hread ([0-9]+)
\\
.0x[0-9a-f]*"
));
// Mac: [Switching to process 9294 local thread 0x2e03]
static
QRegExp
re3
(
_
(
"Switching to process ([0-9]+) local thread"
));
QTC_ASSERT
(
re1
.
isValid
()
&&
re2
.
isValid
(),
return
);
QTC_ASSERT
(
re1
.
isValid
()
&&
re2
.
isValid
(),
return
);
if
(
re1
.
indexIn
(
_
(
data
))
!=
-
1
)
if
(
re1
.
indexIn
(
_
(
data
))
!=
-
1
)
maybeHandleInferiorPidChanged
(
re1
.
cap
(
1
));
maybeHandleInferiorPidChanged
(
re1
.
cap
(
1
));
else
if
(
re2
.
indexIn
(
_
(
data
))
!=
-
1
)
else
if
(
re2
.
indexIn
(
_
(
data
))
!=
-
1
)
maybeHandleInferiorPidChanged
(
re2
.
cap
(
1
));
maybeHandleInferiorPidChanged
(
re2
.
cap
(
1
));
else
if
(
re3
.
indexIn
(
_
(
data
))
!=
-
1
)
maybeHandleInferiorPidChanged
(
re3
.
cap
(
1
));
}
}
// Show some messages to give the impression something happens.
// Show some messages to give the impression something happens.
...
...
Write
Preview
Markdown
is supported
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