set logging redirect on doesn't work from within python

Emiliano Testa <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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 |

[email protected]

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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.