projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a17805b
)
Fix Python documentation for range type fields
author
Tom Tromey
<tromey@adacore.com>
Fri, 11 Aug 2023 18:22:27 +0000
(12:22 -0600)
committer
Tom Tromey
<tromey@adacore.com>
Fri, 11 Aug 2023 18:22:27 +0000
(12:22 -0600)
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
patch
|
blob
|
history
diff --git
a/gdb/doc/python.texi
b/gdb/doc/python.texi
index bd4818fb120c006e60e700cc72f5f6dad5984e1e..505d1102c20faeae28f2dff360b29623a2f5ef7c 100644
(file)
--- 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.