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

Tom Tromey tromey@redhat.com
Mon Jun 23 17:36:00 GMT 2008


>>>>> "Thiago" == thiagoju  <thiagoju@linux.ibm.com> writes:

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

>> _() around arguments to error.  Also, in general PyErr_Print is
>> probably dumping to stderr?  Output should go through GDB's error
>> mechanisms, and in this case probably be part of the argument to
>> error.  Can you get it to return an error string instead?

Thiago> This is stillpending, I think.

Yeah, this one is still pending.
I haven't dug into what to do here yet... feel free to take it if you
want :).  Otherwise I will get to it when I'm a bit more caught up.

Tom



More information about the Gdb-patches mailing list