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
Tobias Hunger
qt-creator
Commits
1a6737cb
Commit
1a6737cb
authored
Nov 18, 2010
by
Friedemann Kleint
Browse files
Debugger[new CDB]: Handle command line arguments correctly.
parent
0b3ef78c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb2/cdbengine2.cpp
View file @
1a6737cb
...
...
@@ -401,9 +401,7 @@ bool CdbEngine::doSetupEngine(QString *errorMessage)
switch
(
sp
.
startMode
)
{
case
StartInternal
:
case
StartExternal
:
arguments
<<
sp
.
executable
;
foreach
(
const
QString
&
arg
,
sp
.
processArgs
)
arguments
<<
arg
;
// @TODO quoting/env
arguments
<<
QDir
::
toNativeSeparators
(
sp
.
executable
);
break
;
case
AttachExternal
:
case
AttachCrashedExternal
:
// @TODO: event handle for crashed?
...
...
@@ -425,6 +423,10 @@ bool CdbEngine::doSetupEngine(QString *errorMessage)
m_outputBuffer
.
clear
();
m_process
.
setEnvironment
(
mergeEnvironment
(
sp
.
environment
.
toStringList
(),
extensionFi
.
absolutePath
()));
#ifdef Q_OS_WIN
if
(
!
sp
.
processArgs
.
isEmpty
())
// Appends
m_process
.
setNativeArguments
(
sp
.
processArgs
);
#endif
m_process
.
start
(
executable
,
arguments
);
if
(
!
m_process
.
waitForStarted
())
{
*
errorMessage
=
QString
::
fromLatin1
(
"Internal error: Cannot start process %1: %2"
).
...
...
Write
Preview
Supports
Markdown
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