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] python doc: Rework Breakpoint.__init__ doc


> CC: <gdb-patches@sourceware.org>
> From: Simon Marchi <simon.marchi@ericsson.com>
> Date: Fri, 8 Dec 2017 15:46:59 -0500
> 
>   - don't use spec and function/line/label/source at the same time
>   - you should choose (exclusively) one form (the one that uses spec) or
>     the other (the one that uses function/line/label/source)

My question was about the 2nd form only: which of the keywords can or
cannot be used together, and what is the semantics of their
combinations?  I suspect the rules are the same as with the CLI
command, so I think we should either tell that or add a
cross-reference to where that's described for CLI.

> However, showing two different constructors in the documentation is not technically
> accurate with how it is implemented in the Python-support code, because it is
> not possible to have two constructors with different signatures in Python.

That's okay, since the manual says "2 forms", not "2 constructors".
Right?


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