set logging redirect on doesn't work from within python

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

set logging redirect on doesn't work from within python

Emiliano Testa
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 |

[hidden email]

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>