aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-09-07 11:18:16 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-09-28 15:33:13 +0100
commit5ce85461a143e0d564b6dfa6407374851899d491 (patch)
treeb3491a93a686d78c5d00090781ccc450abff6d4d /gdb/NEWS
parentce65386db6653171334434ae488a0c0e10a60871 (diff)
downloadbinutils-5ce85461a143e0d564b6dfa6407374851899d491.zip
binutils-5ce85461a143e0d564b6dfa6407374851899d491.tar.gz
binutils-5ce85461a143e0d564b6dfa6407374851899d491.tar.bz2
gdb/python: new Progspace.symbol_file attribute
Add a new Progspace.symbol_file attribute. This attribute holds the gdb.Objfile object that corresponds to Progspace.filename, or None if there is no main symbol file currently set. Currently, to get this gdb.Objfile, a user would need to use Progspace.objfiles, and then search for the objfile with a name that matches Progspace.filename -- which should work just fine, but having direct access seems a little nicer. Reviewed-By: Eli Zaretskii <eliz@gnu.org> Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 5b9ca9b..5d9e9ee 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -298,6 +298,11 @@ show tui mouse-events
class, it signals to gdb that the printer may implement new
pretty-printer methods.
+ ** New attribute Progspace.symbol_file. This attribute holds the
+ gdb.Objfile that corresponds to Progspace.filename (when
+ Progspace.filename is not None), otherwise, this attribute is
+ itself None.
+
*** Changes in GDB 13
* MI version 1 is deprecated, and will be removed in GDB 14.