public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Minor fix to Python breakpoint event documentation
@ 2022-06-09 15:44 Tom Tromey
  2022-06-09 16:49 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2022-06-09 15:44 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

I noticed that the Python event documentation referred to the event's
"breakpoint" field as a function, whereas it is actually an attribute.
This patch fixes the error.
---
 gdb/doc/python.texi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index ba5a9b315e1..aaf7666e0be 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3448,9 +3448,9 @@ A sequence containing references to all the breakpoints (type
 @end defvar
 
 @defvar BreakpointEvent.breakpoint
-A reference to the first breakpoint that was hit.
-This function is maintained for backward compatibility and is now deprecated 
-in favor of the @code{gdb.BreakpointEvent.breakpoints} attribute.
+A reference to the first breakpoint that was hit.  This attribute is
+maintained for backward compatibility and is now deprecated in favor
+of the @code{gdb.BreakpointEvent.breakpoints} attribute.
 @end defvar
 
 @item events.new_objfile
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Minor fix to Python breakpoint event documentation
  2022-06-09 15:44 [PATCH] Minor fix to Python breakpoint event documentation Tom Tromey
@ 2022-06-09 16:49 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2022-06-09 16:49 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

> Date: Thu,  9 Jun 2022 09:44:31 -0600
> From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org>
> Cc: Tom Tromey <tromey@adacore.com>
> 
> I noticed that the Python event documentation referred to the event's
> "breakpoint" field as a function, whereas it is actually an attribute.
> This patch fixes the error.

OK, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-09 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 15:44 [PATCH] Minor fix to Python breakpoint event documentation Tom Tromey
2022-06-09 16:49 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).