* [pushed] Fix Python documentation for range type fields
@ 2023-08-11 18:24 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-08-11 18:24 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
GDB's Python documentation claims that range types have two fields,
but this is not true, and attempts to access them hit this error:
"Type is not a structure, union, enum, or function type."
This patch fixes the documentation.
---
gdb/doc/python.texi | 3 ---
1 file changed, 3 deletions(-)
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index bd4818fb120..505d1102c20 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -1403,9 +1403,6 @@ Return the fields of this type. The behavior depends on the type code:
@item
For structure and union types, this method returns the fields.
-@item
-Range types have two fields, the minimum and maximum values.
-
@item
Enum types have one field per enum constant.
--
2.40.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-11 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11 18:24 [pushed] Fix Python documentation for range type fields Tom Tromey
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).