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
69b6846c
Commit
69b6846c
authored
Feb 22, 2011
by
hjk
Browse files
debugger: reduce line noise
parent
c46ad44c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerrunner.cpp
View file @
69b6846c
...
...
@@ -73,21 +73,21 @@ namespace Debugger {
namespace
Internal
{
bool
isCdbEngineEnabled
();
// Check the configuration page
ConfigurationCheck
checkCdbConfiguration
(
const
ProjectExplorer
::
Abi
&
);
ConfigurationCheck
checkCdbConfiguration
(
const
Abi
&
abi
);
DebuggerEngine
*
createCdbEngine
(
const
DebuggerStartParameters
&
,
DebuggerEngine
*
createCdbEngine
(
const
DebuggerStartParameters
&
sp
,
DebuggerEngine
*
masterEngine
,
QString
*
error
);
DebuggerEngine
*
createGdbEngine
(
const
DebuggerStartParameters
&
,
DebuggerEngine
*
createGdbEngine
(
const
DebuggerStartParameters
&
sp
,
DebuggerEngine
*
masterEngine
);
DebuggerEngine
*
createScriptEngine
(
const
DebuggerStartParameters
&
);
DebuggerEngine
*
createPdbEngine
(
const
DebuggerStartParameters
&
);
DebuggerEngine
*
createTcfEngine
(
const
DebuggerStartParameters
&
);
DebuggerEngine
*
createQmlEngine
(
const
DebuggerStartParameters
&
,
DebuggerEngine
*
createScriptEngine
(
const
DebuggerStartParameters
&
sp
);
DebuggerEngine
*
createPdbEngine
(
const
DebuggerStartParameters
&
sp
);
DebuggerEngine
*
createTcfEngine
(
const
DebuggerStartParameters
&
sp
);
DebuggerEngine
*
createQmlEngine
(
const
DebuggerStartParameters
&
sp
,
DebuggerEngine
*
masterEngine
);
DebuggerEngine
*
createQmlCppEngine
(
const
DebuggerStartParameters
&
);
DebuggerEngine
*
createLldbEngine
(
const
DebuggerStartParameters
&
);
DebuggerEngine
*
createQmlCppEngine
(
const
DebuggerStartParameters
&
sp
);
DebuggerEngine
*
createLldbEngine
(
const
DebuggerStartParameters
&
sp
);
extern
QString
msgNoBinaryForToolChain
(
const
ProjectExplorer
::
Abi
&
abi
);
extern
QString
msgNoBinaryForToolChain
(
const
Abi
&
abi
);
static
QString
msgEngineNotAvailable
(
const
char
*
engine
)
{
...
...
@@ -371,7 +371,7 @@ void DebuggerRunControl::setCustomEnvironment(Utils::Environment env)
d
->
m_engine
->
startParameters
().
environment
=
env
;
}
ConfigurationCheck
checkDebugConfiguration
(
const
ProjectExplorer
::
Abi
&
abi
)
ConfigurationCheck
checkDebugConfiguration
(
const
Abi
&
abi
)
{
ConfigurationCheck
result
;
...
...
@@ -383,12 +383,17 @@ ConfigurationCheck checkDebugConfiguration(const ProjectExplorer::Abi &abi)
(
abi
.
binaryFormat
()
==
Abi
::
Format_PE
&&
abi
.
osFlavor
()
==
Abi
::
Windows_msys
))
{
if
(
debuggerCore
()
->
debuggerForAbi
(
abi
).
isEmpty
())
{
result
.
errorMessage
=
msgNoBinaryForToolChain
(
abi
);
if
(
!
result
.
errorMessage
.
isEmpty
())
result
.
errorMessage
+=
QLatin1Char
(
'\n'
);
result
.
errorMessage
+=
QLatin1Char
(
' '
)
+
msgEngineNotAvailable
(
"Gdb"
);
result
.
settingsPage
=
_
(
Constants
::
DEBUGGER_COMMON_SETTINGS_ID
);
}
}
else
if
(
abi
.
binaryFormat
()
==
Abi
::
Format_PE
&&
abi
.
osFlavor
()
!=
Abi
::
Windows_msys
)
{
}
else
if
(
abi
.
binaryFormat
()
==
Abi
::
Format_PE
&&
abi
.
osFlavor
()
!=
Abi
::
Windows_msys
)
{
result
=
checkCdbConfiguration
(
abi
);
if
(
!
result
)
{
if
(
!
result
.
errorMessage
.
isEmpty
())
result
.
errorMessage
+=
QLatin1Char
(
'\n'
);
result
.
errorMessage
+=
msgEngineNotAvailable
(
"Cdb"
);
result
.
settingsPage
=
_
(
"Cdb"
);
}
...
...
src/plugins/debugger/gdb/gdboptionspage.cpp
View file @
69b6846c
...
...
@@ -62,17 +62,17 @@ QString GdbOptionsPage::displayName() const
QString
GdbOptionsPage
::
category
()
const
{
return
QLatin1String
(
Debugger
::
Constants
::
DEBUGGER_SETTINGS_CATEGORY
);
return
QLatin1String
(
Constants
::
DEBUGGER_SETTINGS_CATEGORY
);
}
QString
GdbOptionsPage
::
displayCategory
()
const
{
return
QCoreApplication
::
translate
(
"Debugger"
,
Debugger
::
Constants
::
DEBUGGER_SETTINGS_TR_CATEGORY
);
return
QCoreApplication
::
translate
(
"Debugger"
,
Constants
::
DEBUGGER_SETTINGS_TR_CATEGORY
);
}
QIcon
GdbOptionsPage
::
categoryIcon
()
const
{
return
QIcon
(
QLatin1String
(
Debugger
::
Constants
::
DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON
));
return
QIcon
(
QLatin1String
(
Constants
::
DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON
));
}
QWidget
*
GdbOptionsPage
::
createPage
(
QWidget
*
parent
)
...
...
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