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: [PATCH 05/28] py-cmd.c error-checking bug fix


On 05/15/2013 05:20 PM, Tom Tromey wrote:

> Pedro> Shouldn't this be 'malloc_failure (0)' instead of returning NULL?
> 
> In the Python layer we follow Python conventions for error handling.
> Here, PyList_New failed and set the Python exception.
> We just propagate that to our caller.

I see.  Thanks for the explanation.

-- 
Pedro Alves


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