Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
b9fb6f4b
Commit
b9fb6f4b
authored
14 years ago
by
hjk
Browse files
Options
Downloads
Patches
Plain Diff
maemo: refactor debugger interaction
parent
b0a9d61d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp
+8
-6
8 additions, 6 deletions
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h
+2
-1
2 additions, 1 deletion
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h
with
10 additions
and
7 deletions
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp
+
8
−
6
View file @
b9fb6f4b
...
...
@@ -82,7 +82,7 @@ RunControl *MaemoDebugSupport::createDebugRunControl(MaemoRunConfiguration *runC
params
.
executable
=
runConfig
->
remoteExecutableFilePath
();
params
.
debuggerCommand
=
MaemoGlobal
::
remoteCommandPrefix
(
runConfig
->
remoteExecutableFilePath
())
+
environment
(
runConfig
->
debuggingType
()
,
runConfig
->
userEnvironmentChanges
())
+
environment
(
debuggingType
,
runConfig
->
userEnvironmentChanges
())
+
QLatin1String
(
" /usr/bin/gdb"
);
params
.
connParams
=
devConf
.
server
;
params
.
localMountDir
=
runConfig
->
localDirToMountForRemoteGdb
();
...
...
@@ -109,20 +109,23 @@ RunControl *MaemoDebugSupport::createDebugRunControl(MaemoRunConfiguration *runC
DebuggerRunControl
*
const
runControl
=
DebuggerPlugin
::
createDebugger
(
params
,
runConfig
);
bool
useGdb
=
params
.
startMode
==
StartRemoteGdb
&&
debuggingType
!=
MaemoRunConfiguration
::
DebugQmlOnly
;
MaemoDebugSupport
*
debugSupport
=
new
MaemoDebugSupport
(
runConfig
,
runControl
->
engine
());
new
MaemoDebugSupport
(
runConfig
,
runControl
->
engine
()
,
useGdb
);
connect
(
runControl
,
SIGNAL
(
finished
()),
debugSupport
,
SLOT
(
handleDebuggingFinished
()));
return
runControl
;
}
MaemoDebugSupport
::
MaemoDebugSupport
(
MaemoRunConfiguration
*
runConfig
,
DebuggerEngine
*
engine
)
DebuggerEngine
*
engine
,
bool
useGdb
)
:
QObject
(
engine
),
m_engine
(
engine
),
m_runConfig
(
runConfig
),
m_runner
(
new
MaemoSshRunner
(
this
,
runConfig
,
true
)),
m_debuggingType
(
runConfig
->
debuggingType
()),
m_dumperLib
(
runConfig
->
dumperLib
()),
m_state
(
Inactive
),
m_gdbServerPort
(
-
1
),
m_qmlPort
(
-
1
)
m_state
(
Inactive
),
m_gdbServerPort
(
-
1
),
m_qmlPort
(
-
1
),
m_useGdb
(
useGdb
)
{
connect
(
m_engine
,
SIGNAL
(
requestRemoteSetup
()),
this
,
SLOT
(
handleAdapterSetupRequested
()));
...
...
@@ -366,8 +369,7 @@ QString MaemoDebugSupport::uploadDir(const MaemoDeviceConfig &devConf)
bool
MaemoDebugSupport
::
useGdb
()
const
{
return
m_engine
->
startParameters
().
startMode
==
StartRemoteGdb
&&
m_debuggingType
!=
MaemoRunConfiguration
::
DebugQmlOnly
;
return
m_useGdb
;
}
bool
MaemoDebugSupport
::
setPort
(
int
&
port
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.h
+
2
−
1
View file @
b9fb6f4b
...
...
@@ -65,7 +65,7 @@ public:
static
ProjectExplorer
::
RunControl
*
createDebugRunControl
(
MaemoRunConfiguration
*
runConfig
);
MaemoDebugSupport
(
MaemoRunConfiguration
*
runConfig
,
Debugger
::
DebuggerEngine
*
engine
);
Debugger
::
DebuggerEngine
*
engine
,
bool
useGdb
);
~
MaemoDebugSupport
();
static
QString
uploadDir
(
const
MaemoDeviceConfig
&
devConf
);
...
...
@@ -111,6 +111,7 @@ private:
State
m_state
;
int
m_gdbServerPort
;
int
m_qmlPort
;
bool
m_useGdb
;
};
}
// namespace Internal
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment