From: Eli Zaretskii <eliz@gnu.org>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] python doc: Rework Breakpoint.__init__ doc
Date: Fri, 08 Dec 2017 19:45:00 -0000 [thread overview]
Message-ID: <83vahhuhqo.fsf@gnu.org> (raw)
In-Reply-To: <34fa897a804e9427dbe8ae3c107638e2@polymtl.ca> (message from Simon Marchi on Fri, 08 Dec 2017 12:59:31 -0500)
> Date: Fri, 08 Dec 2017 12:59:31 -0500
> From: Simon Marchi <simon.marchi@polymtl.ca>
> Cc: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
>
> We have a cross-reference for break and watch just above, is it
> necessary to put them at every reference of those commands?
No, not if they are close enough to one another.
> Alternatively, instead of adding a "(see Setting Breakpoints)", for
> example, is it possible to make the "break" word a link itself to the
> documentation of break?
This doesn't work well in some formats supported by Texinfo, so IMO
it's best to avoid that.
> It would work great for
> HTML, PDF and info (formats with links), but not so much for plain text
> formats.
Actually, it works well for HTML, less well for Info, and not at all
for PDF (because there are no hyperlinks in the printed version, only
"See this and that").
> >> +The optional @var{type} argument denotes the breakpoint to create
> >> from the types
> >> +defined later in this chapter. This argument can be either
> >> +@code{gdb.BP_BREAKPOINT} or @code{gdb.BP_WATCHPOINT}; it defaults to
> >> +@code{gdb.BP_BREAKPOINT}.
> >
> > TYPE does not denote the breakpoint, it specifies its type. So
> > suggest to reword"
> >
> > The optional @var{type} argument specifies the type of the
> > breakpoint to create, as defined below.
>
> Done. I understand that we get rid of the second sentence (This
> argument can be either...)?
Not necessarily, you can keep it if you think it's useful.
> > Btw, didn't you want to describe which combinations of these keywords
> > are valid? Or maybe you should add a cross-reference to where that is
> > described for the CLI commands.
>
> The important part is the fact that you can't use "spec" at the same
> time as source/line/label/function. This should now be clear, because
> they are defined in the two separate forms of gdb.Breakpoint().
Hmmm... now I'm confused: "at the same time" and "separate forms"
sounds like a contradiction to me. My understanding was that one
needs to choose which constructor to use: the first or the second, and
then produce the spec accordingly. Isn't that so?
Thanks.
next prev parent reply other threads:[~2017-12-08 19:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-07 21:23 Simon Marchi
2017-12-08 14:12 ` Eli Zaretskii
2017-12-08 18:00 ` Simon Marchi
2017-12-08 19:45 ` Eli Zaretskii [this message]
2017-12-08 20:47 ` Simon Marchi
2017-12-09 8:22 ` Eli Zaretskii
2017-12-12 21:16 ` Simon Marchi
2017-12-13 3:35 ` Eli Zaretskii
2017-12-13 4:54 ` Simon Marchi
2017-12-13 16:07 ` Eli Zaretskii
2017-12-13 16:29 ` Simon Marchi
2017-12-08 18:22 ` [PATCH v2] " Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83vahhuhqo.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox