aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-08-28 16:58:12 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-09-28 15:33:13 +0100
commitce65386db6653171334434ae488a0c0e10a60871 (patch)
tree2f3a1a7b6eca19c1f3be5812fe4dab0c78e2fdc7 /gdb/python
parent054f25955c2b77f6e21073bfdd70a60e9df1ffe7 (diff)
downloadgdb-ce65386db6653171334434ae488a0c0e10a60871.zip
gdb-ce65386db6653171334434ae488a0c0e10a60871.tar.gz
gdb-ce65386db6653171334434ae488a0c0e10a60871.tar.bz2
gdb/doc: extend the description for Progspace.filename
Extend the description for Progspace.filename in the documentation to mention what the returned string is actually the filename for (e.g. that it is the filename passed to the 'symbol-file' or 'file' command). Also document that this attribute will be None if no symbol file is currently loaded. Reviewed-By: Eli Zaretskii <eliz@gnu.org> Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-progspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c
index b98ac8d..2b1d160 100644
--- a/gdb/python/py-progspace.c
+++ b/gdb/python/py-progspace.c
@@ -572,7 +572,7 @@ static gdb_PyGetSetDef pspace_getset[] =
{ "__dict__", gdb_py_generic_dict, NULL,
"The __dict__ for this progspace.", &pspace_object_type },
{ "filename", pspy_get_filename, NULL,
- "The progspace's main filename, or None.", NULL },
+ "The filename of the progspace's main symbol file, or None.", nullptr },
{ "pretty_printers", pspy_get_printers, pspy_set_printers,
"Pretty printers.", NULL },
{ "frame_filters", pspy_get_frame_filters, pspy_set_frame_filters,