Re: [RFC][patch 1/9] initial Python support

Tom Tromey
2008-07-06T17:28:00Z

>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

>>> > + if (PyErr_Occurred ())
>>> > + {
>>> > + PyErr_Print ();
>>> > + error ("error while executing Python code");
>>> > + }
>>> > +}

Thiago> This is stillpending, I think.

FYI -- I fixed this today. I added a new 'maint set python-stack'
variable that controls whether Python stack traces are printed. By
default they are. I changed all the new code to use a new
gdbpy_print_stack which checks this variable. Finally, I set things
up so that gdb overrides Python's sys.stdout and sys.stderr to print
things using printf_filtered.

Tom