diff options
author | Doug Evans <dje@google.com> | 2015-01-27 10:13:52 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-01-27 10:13:52 -0800 |
commit | 3a8b707add581af37804947536025dd3e7fc1a33 (patch) | |
tree | 20c64055757dbd442dd4188b7d00d204fd719685 /gdb/doc/python.texi | |
parent | 1b5493961ab1f65a3336b2178ba3d035a130f9f6 (diff) | |
download | gdb-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/python.texi')
-rw-r--r-- | gdb/doc/python.texi | 7 |
1 files changed, 7 insertions, 0 deletions
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. |