This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]