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
8eee28d8
Commit
8eee28d8
authored
Mar 22, 2010
by
hjk
Browse files
debugger: shorten startup failure message a bit
parent
128ed085
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggermanager.cpp
View file @
8eee28d8
...
...
@@ -760,10 +760,12 @@ void DebuggerManager::clearStatusMessage()
d
->
m_statusLabel
->
setText
(
d
->
m_lastPermanentStatusMessage
);
}
void
DebuggerManager
::
showStatusMessage
(
const
QString
&
msg
,
int
timeout
)
void
DebuggerManager
::
showStatusMessage
(
const
QString
&
msg
0
,
int
timeout
)
{
Q_UNUSED
(
timeout
)
showDebuggerOutput
(
LogStatus
,
msg
);
showDebuggerOutput
(
LogStatus
,
msg0
);
QString
msg
=
msg0
;
msg
.
replace
(
QLatin1Char
(
'\n'
),
QString
());
d
->
m_statusLabel
->
setText
(
QLatin1String
(
" "
)
+
msg
);
if
(
timeout
>
0
)
{
d
->
m_statusTimer
->
setSingleShot
(
true
);
...
...
src/plugins/debugger/gdb/plaingdbadapter.cpp
View file @
8eee28d8
...
...
@@ -123,8 +123,11 @@ void PlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
#endif
emit
inferiorPrepared
();
}
else
{
QString
msg
=
tr
(
"Starting executable failed:
\n
"
)
+
QString
::
fromLocal8Bit
(
response
.
data
.
findChild
(
"msg"
).
data
());
QByteArray
ba
=
response
.
data
.
findChild
(
"msg"
).
data
();
QString
msg
=
QString
::
fromLocal8Bit
(
ba
);
// Extend the message a bit in unknown cases.
if
(
!
ba
.
endsWith
(
"File format not recognized"
))
msg
=
tr
(
"Starting executable failed:
\n
"
)
+
msg
;
emit
inferiorStartFailed
(
msg
);
}
}
...
...
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