From 99298c958c5393402cd2bc2885c195838a9dd363 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 20 Jun 2022 12:32:52 -0600 Subject: 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. --- gdb/NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index c4f4a02..1178a37 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -118,6 +118,9 @@ GNU/Linux/LoongArch (gdbserver) loongarch*-*-linux* to wrap the result of a call to a Disassembler. It has read-only attributes 'length' and 'string'. + ** gdb.Objfile now has an attribute named "is_file". This is True + if the objfile comes from a file, and False otherwise. + * New features in the GDB remote stub, GDBserver ** GDBserver is now supported on LoongArch GNU/Linux. -- cgit v1.1