This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 05/28] py-cmd.c error-checking bug fix
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 15 May 2013 17:28:56 +0100
- Subject: Re: [PATCH 05/28] py-cmd.c error-checking bug fix
- References: <87ehe638ww dot fsf at fleche dot redhat dot com> <87fvym1tmo dot fsf at fleche dot redhat dot com> <5193B15C dot 8080907 at redhat dot com> <87bo8c2p0h dot fsf at fleche dot redhat dot com>
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