From f8b12b8e1048a78816b23c968b07039106365e63 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 11 Aug 2023 12:22:27 -0600 Subject: [PATCH] Fix Python documentation for range type fields 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.30.2