* gdb.execute(to_string=True) doesn't capture signal notice anymore
@ 2018-08-15 20:09 Andrey Utkin
2018-08-16 14:35 ` Phil Muldoon
0 siblings, 1 reply; 2+ messages in thread
From: Andrey Utkin @ 2018-08-15 20:09 UTC (permalink / raw)
To: gdb
Hi,
We have some code which uses the fact of GDB 7.7 behaviour that if you
execute python code like
s = gdb.execute("run", to_string=True)
and, say, debuggee generates SIGTRAP, then result `s` includes the
string "Program received signal SIGTRAP, Trace/breakpoint trap."
What we see is that since 7.12.1 or earlier, and until now, this is no
longer the case - this message is not captured but is only printed to
terminal.
Before I dig into "fixing it", I want to know maintainers opinion - is
the current behaviour exactly what you like, or it's an unintended
regression and you'd prefer to preserve the old way?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gdb.execute(to_string=True) doesn't capture signal notice anymore
2018-08-15 20:09 gdb.execute(to_string=True) doesn't capture signal notice anymore Andrey Utkin
@ 2018-08-16 14:35 ` Phil Muldoon
0 siblings, 0 replies; 2+ messages in thread
From: Phil Muldoon @ 2018-08-16 14:35 UTC (permalink / raw)
To: gdb, autkin
On 15/08/18 21:08, Andrey Utkin wrote:
> Hi,
>
> We have some code which uses the fact of GDB 7.7 behaviour that if you
> execute python code like
>
> s = gdb.execute("run", to_string=True)
>
> and, say, debuggee generates SIGTRAP, then result `s` includes the
> string "Program received signal SIGTRAP, Trace/breakpoint trap."
>
> What we see is that since 7.12.1 or earlier, and until now, this is no
> longer the case - this message is not captured but is only printed to
> terminal.
>
> Before I dig into "fixing it", I want to know maintainers opinion - is
> the current behaviour exactly what you like, or it's an unintended
> regression and you'd prefer to preserve the old way?
>
This is a unintended regression unfortunately. The output of
gdb.execute has been bitten by some ui-out reorganizing.
https://sourceware.org/bugzilla/show_bug.cgi?id=21506
Cheers
Phil
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-16 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 20:09 gdb.execute(to_string=True) doesn't capture signal notice anymore Andrey Utkin
2018-08-16 14:35 ` Phil Muldoon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).