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
f8300260
Commit
f8300260
authored
Aug 18, 2009
by
hjk
Browse files
debugger: do not show a dialog for SIGTRAP as this happens too often
when stopping debugging.
parent
7ab3981b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
f8300260
...
...
@@ -1185,17 +1185,21 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data)
if
(
reason
==
"signal-received"
&&
theDebuggerBoolSetting
(
UseMessageBoxForSignals
))
{
QByteArray
name
=
data
.
findChild
(
"signal-name"
).
data
();
QByteArray
meaning
=
data
.
findChild
(
"signal-meaning"
).
data
();
QString
msg
=
tr
(
"<p>The inferior stopped because it received a "
"signal from the Operating System.<p>"
"<table><tr><td>Signal name : </td><td>%1</td></tr>"
"<tr><td>Signal meaning : </td><td>%2</td></tr></table>"
)
.
arg
(
name
.
isEmpty
()
?
tr
(
" <Unknown> "
)
:
_
(
name
))
.
arg
(
meaning
.
isEmpty
()
?
tr
(
" <Unknown> "
)
:
_
(
meaning
));
QMessageBox
*
mb
=
new
QMessageBox
(
QMessageBox
::
Information
,
tr
(
"Signal received"
),
msg
);
mb
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
mb
->
show
();
// Ignore SIGTRAP as they are showing up regularily when
// stopping debugging.
if
(
name
!=
"SIGTRAP"
)
{
QByteArray
meaning
=
data
.
findChild
(
"signal-meaning"
).
data
();
QString
msg
=
tr
(
"<p>The inferior stopped because it received a "
"signal from the Operating System.<p>"
"<table><tr><td>Signal name : </td><td>%1</td></tr>"
"<tr><td>Signal meaning : </td><td>%2</td></tr></table>"
)
.
arg
(
name
.
isEmpty
()
?
tr
(
" <Unknown> "
)
:
_
(
name
))
.
arg
(
meaning
.
isEmpty
()
?
tr
(
" <Unknown> "
)
:
_
(
meaning
));
QMessageBox
*
mb
=
new
QMessageBox
(
QMessageBox
::
Information
,
tr
(
"Signal received"
),
msg
);
mb
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
mb
->
show
();
}
}
if
(
reason
.
isEmpty
())
...
...
@@ -4130,7 +4134,6 @@ void GdbEngine::handleFetchDisassemblerByAddress1(const GdbResultRecord &record,
void
GdbEngine
::
handleFetchDisassemblerByAddress0
(
const
GdbResultRecord
&
record
,
const
QVariant
&
cookie
)
{
bool
ok
=
true
;
DisassemblerAgentCookie
ac
=
cookie
.
value
<
DisassemblerAgentCookie
>
();
QTC_ASSERT
(
ac
.
agent
,
return
);
...
...
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