From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 870693858409 for ; Fri, 21 Jul 2023 16:03:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 870693858409 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMsb5-0005ni-Hj; Fri, 21 Jul 2023 12:03:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=O0xj0ip0Gf9L0oEIxklF8zdHwZwjVoJ66M4mk3N46RU=; b=FG9zobr3SHys edDFhRZ6aW6WX2CuM70A9HR3/A4rGnzEZwrQrbFju1qVYECJ4hhBxaIbQ3UAVSuDteUkx8hg9HL2V OVfyZ9p1BG/TaQVndoYMMQKrm6p80U4IWMhnjoQpuJygWs03/vHefTz6AjnUrFvL3+QGF6rJ0/8Gn dGYgeJaI/FQXX08aWwHPq8l1ScPvXp3hLYUHSZbJn2jlUMan5qgmviiso0cMB+lCR6k2OdKhy2dUb yjx9VYrJSwDZAVajfcwiwE40RAS4GLemY4KnsyVTOek4HcVFju9chL9ZsZBCmkzPNqT/xFxfiLJQo AV1H886/BMHYheDTYEKm0g==; Received: from [87.69.77.57] (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 1qMsb5-0001nY-0W; Fri, 21 Jul 2023 12:03:15 -0400 Date: Fri, 21 Jul 2023 19:03:50 +0300 Message-Id: <83y1j99rq1.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey Cc: gdb-patches@sourceware.org In-Reply-To: <20230721-dap-modules-v2-2-1cf831842cc8@adacore.com> (message from Tom Tromey on Fri, 21 Jul 2023 09:55:32 -0600) Subject: Re: [PATCH v2 2/3] Add Progspace.objfile_for_address References: <20230721-dap-modules-v2-0-1cf831842cc8@adacore.com> <20230721-dap-modules-v2-2-1cf831842cc8@adacore.com> X-Spam-Status: No, score=1.7 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 List-Id: > From: Tom Tromey > Date: Fri, 21 Jul 2023 09:55:32 -0600 > Cc: Eli Zaretskii > > This adds a new objfile_for_address method to gdb.Progspace. This > makes it easy to find the objfile for a given address. > > There's a related PR; and while this change would have been sufficient > for my original need, it's not clear to me whether I should close the > bug. Nevertheless I think it makes sense to at least mention it here. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19288 > Reviewed-By: Eli Zaretskii > --- > gdb/NEWS | 3 +++ > gdb/doc/python.texi | 5 +++++ > gdb/progspace.c | 16 ++++++++++++++++ > gdb/progspace.h | 4 ++++ > gdb/python/py-progspace.c | 27 +++++++++++++++++++++++++++ > gdb/testsuite/gdb.python/py-progspace.exp | 7 +++++++ > 6 files changed, 62 insertions(+) OK for the documentation parts.