gdb.execute and redirect

Paul Koning via Gdb <[email protected]> Fri, 13 Feb 2026 16:29:25 -0500
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
I noticed the other day that logging redirect is not honored by gdb.execute, at least not in GDB 8.2 which is what came with my OS kit.

I can work around this by doing something like this:

	s = gdb.execute(cmd, False, True)
	print (s)

but it's surprising that this would be needed.  Is it intentional?  Is it fixed in a more recent release?

	paul