This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix PR python/17981
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 23 May 2016 09:52:33 +0100
- Subject: Re: [RFA] Fix PR python/17981
- Authentication-results: sourceware.org; auth=none
- References: <1463629620-8915-1-git-send-email-tom at tromey dot com>
Tom Tromey <tom@tromey.com> writes:
> PR python/17981 notes that gdb.breakpoints() returns None when there
> are no breakpoints; whereas an empty list or tuple would be more in
> keeping with Python and the documentation.
>
> This patch fixes the bug by changing the no-breakpoint return to make
> an empty tuple.
>
We need to update doc about gdb.breakpoints () for this change.
>
> - /* If iteratre_over_breakpoints returns non NULL it signals an error
> + /* If iterate_over_breakpoints returns non NULL it signals an error
This is a typo fix, can go in as a separate patch. Otherwise, patch is
good to me.
--
Yao (éå)