I have a function dump()
which, when invoked on an object of type X
, prints out something useful to stderr.
I'm trying to write a GDB pretty-print script that utilizes the output of some command to return a string describing a value, something along these lines:
return gdb.execute(str(self.val) + '.dump()', False, True)
Unfortunately, this gives me:
warning: Current output protocol does not support redirection
How can I solve this issue? Is this even the right approach to get the stderr output?