From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 5F26A3857BA9 for ; Mon, 20 Jun 2022 18:47:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F26A3857BA9 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3MQq-0001tz-PV; Mon, 20 Jun 2022 14:47:28 -0400 Received: from [87.69.77.57] (port=4250 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3MQq-0006qs-8m; Mon, 20 Jun 2022 14:47:28 -0400 Date: Mon, 20 Jun 2022 21:47:14 +0300 Message-Id: <83o7ynkw99.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey Cc: gdb-patches@sourceware.org In-Reply-To: <20220620183940.2718428-1-tromey@adacore.com> (message from Tom Tromey via Gdb-patches on Mon, 20 Jun 2022 12:39:40 -0600) Subject: Re: [PATCH] Add gdb.Objfile.is_file attribute References: <20220620183940.2718428-1-tromey@adacore.com> X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2022 18:47:30 -0000 > Date: Mon, 20 Jun 2022 12:39:40 -0600 > From: Tom Tromey via Gdb-patches > Cc: Tom Tromey > > 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 +++ > gdb/doc/python.texi | 7 +++++++ > gdb/python/py-objfile.c | 14 ++++++++++++++ > gdb/testsuite/gdb.base/jit-reader.exp | 12 ++++++++++++ > 4 files changed, 36 insertions(+) OK for the documentation parts, thanks.