public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* set logging redirect on doesn't work from within python
@ 2020-07-09 16:11 Emiliano Testa
  0 siblings, 0 replies; only message in thread
From: Emiliano Testa @ 2020-07-09 16:11 UTC (permalink / raw)
  To: gdb

The following doesn't seem to work:

python
gdb.execute('set logging off')
gdb.execute('set logging redirect on')
gdb.execute('set logging on')
gdb.execute('next')
gdb.execute('set logging off')
end

I would expect the "next" to be completely silent and "gdb.txt" to 
contain the output... it doesn't work.

define
set logging off
set logging redirect on
set logging on
next
set logging off

end


works as expected. Is this a bug?

(tried both on GDB-8.1 and GDB-9.2)

Many thanks


Emiliano

-- 

Emiliano Testa | Software Engineer | Direct: (+44)7512468305 |

etesta@undo.io

Undo <https://undo.io> | Accelerate software defect resolution by 
eliminating the guesswork in failure diagnosis


CI Best Practice: Go Green, Stay Green 
<https://info.undo.io/go-green-stay-green>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-09 16:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 16:11 set logging redirect on doesn't work from within python Emiliano Testa

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).