set logging redirect on doesn't work from within python
Emiliano Testa
etesta@undo.io
Thu Jul 9 16:11:11 GMT 2020
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>
More information about the Gdb
mailing list