aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-01-27 10:13:52 -0800
committerDoug Evans <dje@google.com>2015-01-27 10:13:52 -0800
commit3a8b707add581af37804947536025dd3e7fc1a33 (patch)
tree20c64055757dbd442dd4188b7d00d204fd719685 /gdb/doc
parent1b5493961ab1f65a3336b2178ba3d035a130f9f6 (diff)
downloadgdb-3a8b707add581af37804947536025dd3e7fc1a33.zip
gdb-3a8b707add581af37804947536025dd3e7fc1a33.tar.gz
gdb-3a8b707add581af37804947536025dd3e7fc1a33.tar.bz2
Add gdb.Objfile.username.
gdb/ChangeLog: * NEWS: Mention gdb.Objfile.username. * python/py-objfile.c (objfpy_get_username): New function. (objfile_getset): Add "username". gdb/doc/ChangeLog: * python.texi (Objfiles In Python): Document Objfile.username. gdb/testsuite/ChangeLog: * gdb.python/py-objfile.exp: Add tests for objfile.username. Add test for objfile.filename, objfile.username after objfile has been unloaded.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/python.texi7
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index c5340a8..be563f5 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,9 @@
2015-01-27 Doug Evans <dje@google.com>
+ * python.texi (Objfiles In Python): Document Objfile.username.
+
+2015-01-27 Doug Evans <dje@google.com>
+
* python.texi (Objfiles In Python) <Objfile.filename>: Improve docs.
* guile.texi (Objfiles In Guile) <objfile-filename>: Improve docs.
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index ba03841..7c04af7 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3519,6 +3519,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.username
+The file name of the objfile as specified by the user as a string.
+
+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.owner
For separate debug info objfiles this is the corresponding @code{gdb.Objfile}
object that debug info is being provided for.