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
4c65bac2
Commit
4c65bac2
authored
Apr 21, 2011
by
Christian Kandeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maemo: Make QML debugging engine aware of early inferior exit.
parent
92cc93db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp
+16
-15
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h
+1
-1
No files found.
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp
View file @
4c65bac2
...
...
@@ -295,31 +295,32 @@ void MaemoDebugSupport::startDebugging()
.
arg
(
m_qmlPort
);
}
QString
remoteCommandLine
;
if
(
m_debuggingType
==
MaemoRunConfiguration
::
DebugQmlOnly
)
{
remoteCommandLine
=
QString
::
fromLocal8Bit
(
"%1 %2 %3 %4"
)
.
arg
(
cmdPrefix
).
arg
(
env
).
arg
(
remoteExe
).
arg
(
args
);
}
else
{
remoteCommandLine
=
QString
::
fromLocal8Bit
(
"%1 %2 gdbserver :%3 %4 %5"
)
const
QString
remoteCommandLine
=
m_debuggingType
==
MaemoRunConfiguration
::
DebugQmlOnly
?
QString
::
fromLocal8Bit
(
"%1 %2 %3 %4"
).
arg
(
cmdPrefix
).
arg
(
env
)
.
arg
(
remoteExe
).
arg
(
args
)
:
QString
::
fromLocal8Bit
(
"%1 %2 gdbserver :%3 %4 %5"
)
.
arg
(
cmdPrefix
).
arg
(
env
).
arg
(
m_gdbServerPort
)
.
arg
(
remoteExe
).
arg
(
args
);
connect
(
m_runner
,
SIGNAL
(
remoteProcessFinished
(
qint64
)),
SLOT
(
handleGdbServerFinished
(
qint64
)));
}
connect
(
m_runner
,
SIGNAL
(
remoteProcessFinished
(
qint64
)),
SLOT
(
handleRemoteProcessFinished
(
qint64
)));
m_runner
->
startExecution
(
remoteCommandLine
.
toUtf8
());
}
}
void
MaemoDebugSupport
::
handle
GdbServer
Finished
(
qint64
exitCode
)
void
MaemoDebugSupport
::
handle
RemoteProcess
Finished
(
qint64
exitCode
)
{
if
(
!
m_engine
||
m_state
==
Inactive
||
exitCode
==
0
)
return
;
if
(
m_state
==
Debugging
)
m_engine
->
notifyInferiorIll
();
else
m_engine
->
handleRemoteSetupFailed
(
tr
(
"The gdbserver process closed unexpectedly."
));
if
(
m_state
==
Debugging
)
{
if
(
m_debuggingType
!=
MaemoRunConfiguration
::
DebugQmlOnly
)
m_engine
->
notifyInferiorIll
();
}
else
{
const
QString
errorMsg
=
m_debuggingType
==
MaemoRunConfiguration
::
DebugQmlOnly
?
tr
(
"Remote application failed with exit code %1."
).
arg
(
exitCode
)
:
tr
(
"The gdbserver process closed unexpectedly."
);
m_engine
->
handleRemoteSetupFailed
(
errorMsg
);
}
}
void
MaemoDebugSupport
::
handleDebuggingFinished
()
...
...
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h
View file @
4c65bac2
...
...
@@ -80,7 +80,7 @@ private slots:
void
handleRemoteErrorOutput
(
const
QByteArray
&
output
);
void
handleProgressReport
(
const
QString
&
progressOutput
);
void
handleRemoteProcessStarted
();
void
handle
GdbServer
Finished
(
qint64
exitCode
);
void
handle
RemoteProcess
Finished
(
qint64
exitCode
);
private:
enum
State
{
...
...
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