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
40dd86b6
Commit
40dd86b6
authored
Nov 26, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: remove unneeded declarations
parent
8baa54e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
23 deletions
+15
-23
src/plugins/debugger/debuggerrunner.cpp
src/plugins/debugger/debuggerrunner.cpp
+15
-18
src/plugins/debugger/debuggerrunner.h
src/plugins/debugger/debuggerrunner.h
+0
-5
No files found.
src/plugins/debugger/debuggerrunner.cpp
View file @
40dd86b6
...
...
@@ -220,18 +220,16 @@ RunControl *DebuggerRunControlFactory::create
return
create
(
sp
,
runConfiguration
);
}
DebuggerRunControl
*
DebuggerRunControlFactory
::
create
(
const
DebuggerStartParameters
&
sp
,
RunConfiguration
*
runConfiguration
)
DebuggerRunControl
*
DebuggerRunControlFactory
::
create
(
const
DebuggerStartParameters
&
sp
,
RunConfiguration
*
runConfiguration
)
{
DebuggerRunControl
*
runControl
=
new
DebuggerRunControl
(
runConfiguration
,
m_enabledEngines
,
sp
);
if
(
!
runControl
->
engine
())
{
qDebug
()
<<
"FAILED TO CREATE ENGINE"
;
delete
runControl
;
return
0
;
}
return
runControl
;
if
(
runControl
->
engine
())
return
runControl
;
qDebug
()
<<
"FAILED TO CREATE ENGINE"
;
delete
runControl
;
return
0
;
}
QWidget
*
DebuggerRunControlFactory
::
createConfigurationWidget
...
...
@@ -522,11 +520,10 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &startParams
break
;
case
CdbEngineType
:
// Try new engine, fall back to old.
if
(
Debugger
::
Cdb
::
isCdbEngineEnabled
())
{
d
->
m_engine
=
Debugger
::
Cdb
::
createCdbEngine
(
sp
,
&
d
->
m_errorMessage
);
}
else
{
d
->
m_engine
=
Debugger
::
Internal
::
createCdbEngine
(
sp
,
&
d
->
m_errorMessage
);
}
if
(
Cdb
::
isCdbEngineEnabled
())
d
->
m_engine
=
Cdb
::
createCdbEngine
(
sp
,
&
d
->
m_errorMessage
);
else
d
->
m_engine
=
Internal
::
createCdbEngine
(
sp
,
&
d
->
m_errorMessage
);
break
;
case
PdbEngineType
:
d
->
m_engine
=
createPdbEngine
(
sp
);
...
...
@@ -555,12 +552,12 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &startParams
if
(
!
d
->
m_engine
)
{
// Could not find anything suitable.
debuggingFinished
();
// Create Message box with possibility to go to settings
// Create Message box with possibility to go to settings
.
const
QString
msg
=
tr
(
"Cannot debug '%1' (tool chain: '%2'): %3"
)
.
arg
(
sp
.
executable
,
toolChainName
(
sp
.
toolChainType
),
d
->
m_errorMessage
);
.
arg
(
sp
.
executable
,
toolChainName
(
sp
.
toolChainType
),
d
->
m_errorMessage
);
Core
::
ICore
::
instance
()
->
showWarningWithOptions
(
tr
(
"Warning"
),
msg
,
QString
(),
QLatin1String
(
Constants
::
DEBUGGER_SETTINGS_CATEGORY
),
d
->
m_settingsIdHint
);
msg
,
QString
(),
QLatin1String
(
Constants
::
DEBUGGER_SETTINGS_CATEGORY
),
d
->
m_settingsIdHint
);
}
}
...
...
src/plugins/debugger/debuggerrunner.h
View file @
40dd86b6
...
...
@@ -47,11 +47,6 @@ class DebuggerRunControl;
class
DebuggerRunControlPrivate
;
class
DebuggerStartParameters
;
namespace
Internal
{
class
GdbEngine
;
class
AbstractGdbAdapter
;
}
class
DEBUGGER_EXPORT
DebuggerRunControlFactory
:
public
ProjectExplorer
::
IRunControlFactory
{
...
...
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