From: Phil Muldoon <pmuldoon@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Small fixes to the Python API doc
Date: Thu, 16 Oct 2014 18:18:00 -0000 [thread overview]
Message-ID: <54400BF0.9010501@redhat.com> (raw)
In-Reply-To: <1413482796-3090-1-git-send-email-simon.marchi@ericsson.com>
On 16/10/14 19:06, Simon Marchi wrote:
> First:
> "Breakpoint.delete" is missing parenthesis.
>
> Second:
> Someone on IRC asked, how come there is no disable() method in the
> Breakpoint object. It turns out you have to do "bp.enabled = False".
> Since every normal person would probably search for "disable" in that page
> if their intent is to disable a python breakpoint, I thought it would be
> useful if the description contained "disable" so it would be easy to find.
> The result might seem a bit silly and redundant, so I am open to
> suggestions.
>
> gdb/doc/ChangeLog:
>
> * python.texi (Breakpoints In Python): Add parenthesis after
> Breakpoint.delete. Clarify Breakpoint.enabled description so
> that it contains "disable".
> ---
> gdb/doc/python.texi | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
>
> @defvar Breakpoint.enabled
> This attribute is @code{True} if the breakpoint is enabled, and
> -@code{False} otherwise. This attribute is writable.
> +@code{False} otherwise. You can use it to enable or disable the breakpoint.
> +This attribute is writable.
> @end defvar
>
> @defvar Breakpoint.silent
No objections to the patch, but maybe we should "just have" a
disable() method even if it duplicates the functionality of the
enabled attribute. What do you think?
Cheers
Phil
next prev parent reply other threads:[~2014-10-16 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-16 18:06 Simon Marchi
2014-10-16 18:18 ` Phil Muldoon [this message]
2014-10-16 18:38 ` Eli Zaretskii
2014-10-20 17:32 ` 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=54400BF0.9010501@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.com \
/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