Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
db99f828
Commit
db99f828
authored
Jul 15, 2010
by
ck
Browse files
Debugger/gdb: Adapt pid parsing.
Written-by: hjk
parent
1871a678
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerengine.cpp
View file @
db99f828
...
...
@@ -1359,6 +1359,7 @@ bool DebuggerEngine::debuggerActionsEnabled(DebuggerState state)
void
DebuggerEngine
::
notifyInferiorPid
(
qint64
pid
)
{
showMessage
(
tr
(
"Taking notice of pid %1"
).
arg
(
pid
));
if
(
d
->
m_inferiorPid
==
pid
)
return
;
d
->
m_inferiorPid
=
pid
;
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
db99f828
...
...
@@ -419,10 +419,16 @@ void GdbEngine::handleResponse(const QByteArray &buff)
// 7.0.x, there was a *-created instead.
const
int
progress
=
m_progress
->
progressValue
();
m_progress
->
setProgressValue
(
qMin
(
70
,
progress
+
1
));
// 7.1.50 has thread-group-started,id="i1",pid="3529"
QByteArray
id
=
result
.
findChild
(
"id"
).
data
();
showStatusMessage
(
tr
(
"Thread group %1 created"
).
arg
(
_
(
id
)),
1000
);
const
int
pid
=
id
.
toInt
();
notifyInferiorPid
(
pid
);
int
pid
=
id
.
toInt
();
if
(
!
pid
)
{
id
=
result
.
findChild
(
"pid"
).
data
();
pid
=
id
.
toInt
();
}
if
(
pid
)
notifyInferiorPid
(
pid
);
}
else
if
(
asyncClass
==
"thread-created"
)
{
//"{id="1",group-id="28902"}"
QByteArray
id
=
result
.
findChild
(
"id"
).
data
();
...
...
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