gdb.execute and redirect

Paul Koning paulkoning@comcast.net
Fri Feb 13 21:29:25 GMT 2026


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



More information about the Gdb mailing list