This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA v2 2/2] Fix PR python/17386 - add __index__ method to gdb.Value
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Mon, 23 May 2016 12:39:50 -0600
- Subject: Re: [RFA v2 2/2] Fix PR python/17386 - add __index__ method to gdb.Value
- Authentication-results: sourceware.org; auth=none
- References: <1464024313-11932-1-git-send-email-tom at tromey dot com> <1464024313-11932-3-git-send-email-tom at tromey dot com> <dfa852ae-9f73-0a4c-4460-1eba3d00fe4d at redhat dot com>
>> +#ifndef HAVE_LIBPYTHON_2_4
>> + /* This was added in Python 2.5. */
>> + , valpy_long /* nb_index */
>> +#endif /* HAVE_LIBPYTHON_2_4 */
Pedro> Are you trying to avoid a trailing comma?
Yep.
Pedro> IOW, this can be:
I fixed it locally, thanks.
Tom