[pushed] Fix incorrect class name in free_objfile documentation

Message ID 20230804155322.4103568-1-tromey@adacore.com
State New
Headers
Series [pushed] Fix incorrect class name in free_objfile documentation |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_check--master-arm warning Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 warning Patch failed to apply

Commit Message

Tom Tromey Aug. 4, 2023, 3:53 p.m. UTC
  The documentation for the Python free_objfile event registry uses the
wrong class name.  This patch fixes it.  I'm checking this in as
obvious.
---
 gdb/doc/python.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Eli Zaretskii Aug. 4, 2023, 4:05 p.m. UTC | #1
> Cc: Tom Tromey <tromey@adacore.com>
> Date: Fri,  4 Aug 2023 09:53:22 -0600
> From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org>
> 
> The documentation for the Python free_objfile event registry uses the
> wrong class name.  This patch fixes it.  I'm checking this in as
> obvious.

Thanks!
  

Patch

diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index a4ec5bf5ceb..bd4818fb120 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3715,7 +3715,7 @@  is about to be removed from @value{GDBN}.  One reason this can happen
 is when the inferior calls @code{dlclose}.
 @code{gdb.FreeObjFileEvent} has one attribute:
 
-@defvar NewObjFileEvent.objfile
+@defvar FreeObjFileEvent.objfile
 A reference to the object file (@code{gdb.Objfile}) which will be unloaded.
 @xref{Objfiles In Python}, for details of the @code{gdb.Objfile} object.
 @end defvar