From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2 2/2] Let Python breakpoints be created silently
Date: Tue, 10 Nov 2026 14:26:46 +0200 [thread overview]
Message-ID: <867bik3m9l.fsf@gnu.org> (raw)
In-Reply-To: <20261109-submit-py-bp-announce-v2-2-aac3f3d98da6@adacore.com> (message from Tom Tromey on Mon, 09 Nov 2026 13:53:25 -0700)
> From: Tom Tromey <tromey@adacore.com>
> Date: Mon, 09 Nov 2026 13:53:25 -0700
> Cc: Tom Tromey <tromey@adacore.com>
>
> Currently, a breakpoint created from Python will always announce its
> presence; and in some cases (for example a pending breakpoint), other
> information will be printed as well.
>
> When scripting gdb, it's useful to be able to control the output in
> cases like this. I debated whether to simply disable the output
> entirely, but I thought perhaps some existing code acts as a simple
> "break"-like command and wants the output.
>
> This patch adds a new "announce" flag to gdb.Breakpoint. Setting this
> to False will cause gdb to be silent here.
> ---
> gdb/doc/python.texi | 10 ++++++++--
> gdb/python/py-breakpoint.c | 29 ++++++++++++++++++++++-------
> gdb/testsuite/gdb.python/py-breakpoint.exp | 3 ++-
> 3 files changed, 32 insertions(+), 10 deletions(-)
Thanks.
> +The optional @var{announce} argument is a boolean that controls
> +whether @var{GDBN} announces the existence of the breakpoint. The
^^^^^^^^^^
"@value{GDBN}"
> +default is to announce, meaning that a message is printed. Setting
> +this argument to false will suppress all output from breakpoint
^^^^^
That "false" should be in @code, no?
The documentation part is okay with those nits fixed.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
prev parent reply other threads:[~2026-11-10 12:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 20:53 [PATCH v2 0/2] Add "announce" flag to Python breakpoint creation Tom Tromey
2026-11-09 20:53 ` [PATCH v2 1/2] Refactor body of bppy_init Tom Tromey
2026-11-09 20:53 ` [PATCH v2 2/2] Let Python breakpoints be created silently Tom Tromey
2026-11-10 12:26 ` Eli Zaretskii [this message]
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=867bik3m9l.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tromey@adacore.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