Re: [RFA] Fix PR python/17981

Yao Qi
2016-05-23T08:52:57Z

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 (齐尧)