aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-06-20 12:32:52 -0600
committerTom Tromey <tromey@adacore.com>2022-07-05 11:22:20 -0600
commit99298c958c5393402cd2bc2885c195838a9dd363 (patch)
treedd05d620651f849488132ef02898f96318ec518e /gdb/doc
parent3acd9a692ddaf8f24d6d34cb5ccb7c26d057e9b3 (diff)
downloadgdb-99298c958c5393402cd2bc2885c195838a9dd363.zip
gdb-99298c958c5393402cd2bc2885c195838a9dd363.tar.gz
gdb-99298c958c5393402cd2bc2885c195838a9dd363.tar.bz2
Add gdb.Objfile.is_file attribute
Sometimes an objfile comes from memory and not from a file. It can be useful to be able to check this from Python, so this patch adds a new "is_file" attribute.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/python.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 9e2e97b..19ae330 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -4891,6 +4891,13 @@ The value is @code{None} if the objfile is no longer valid.
See the @code{gdb.Objfile.is_valid} method, described below.
@end defvar
+@defvar Objfile.is_file
+An objfile often comes from an ordinary file, but in some cases it may
+be constructed from the contents of memory. This attribute is
+@code{True} for file-backed objfiles, and @code{False} for other
+kinds.
+@end defvar
+
@defvar Objfile.owner
For separate debug info objfiles this is the corresponding @code{gdb.Objfile}
object that debug info is being provided for.