Skip to content
GitLab
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
42d3ada0
Commit
42d3ada0
authored
Oct 16, 2009
by
ck
Browse files
Re-enable "set target-async on" and make failure non-fatal
parent
3e3422df
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/remotegdbadapter.cpp
View file @
42d3ada0
...
...
@@ -164,32 +164,20 @@ void RemoteGdbAdapter::startInferior()
m_engine
->
postCommand
(
_
(
"-exec-arguments "
)
+
startParameters
().
processArgs
.
join
(
_
(
" "
)));
#if 0
m_engine
->
postCommand
(
_
(
"set target-async on"
),
CB
(
handleSetTargetAsync
));
#else
QFileInfo
fi
(
startParameters
().
executable
);
QString
fileName
=
fi
.
absoluteFilePath
();
m_engine
->
postCommand
(
_
(
"-file-exec-and-symbols
\"
%1
\"
"
).
arg
(
fileName
),
CB
(
handleFileExecAndSymbols
));
#endif
}
#if 0
void
RemoteGdbAdapter
::
handleSetTargetAsync
(
const
GdbResponse
&
response
)
{
QTC_ASSERT
(
state
()
==
InferiorStarting
,
qDebug
()
<<
state
());
if (response.resultClass == GdbResultDone) {
//qq->breakHandler()->setAllPending();
QFileInfo fi(startParameters().executable);
QString fileName = fi.absoluteFilePath();
m_engine->postCommand(_("-file-exec-and-symbols \"%1\"").arg(fileName),
CB(handleFileExecAndSymbols));
} else {
QString msg = tr("Adapter too old: does not support asynchronous mode.");
emit inferiorStartFailed(msg);
}
if
(
response
.
resultClass
==
GdbResultError
)
qDebug
()
<<
"Adapter too old: does not support asynchronous mode."
;
}
#endif
void
RemoteGdbAdapter
::
handleFileExecAndSymbols
(
const
GdbResponse
&
response
)
{
...
...
src/plugins/debugger/gdb/remotegdbadapter.h
View file @
42d3ada0
...
...
@@ -64,9 +64,7 @@ private:
Q_SLOT
void
readUploadStandardError
();
Q_SLOT
void
uploadProcError
(
QProcess
::
ProcessError
error
);
#if 0
void
handleSetTargetAsync
(
const
GdbResponse
&
response
);
#endif
void
handleFileExecAndSymbols
(
const
GdbResponse
&
response
);
void
handleTargetRemote
(
const
GdbResponse
&
response
);
void
handleKill
(
const
GdbResponse
&
response
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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