From patchwork Sun Nov 5 18:12:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 79094 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1242F385E823 for ; Sun, 5 Nov 2023 18:13:14 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by sourceware.org (Postfix) with ESMTPS id C36063856DEA for ; Sun, 5 Nov 2023 18:11:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C36063856DEA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C36063856DEA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699207898; cv=none; b=v5ao1qGqb0n1bf8ZMdwTWcwJbh7oXg6grjS8sP1810bDwGCKNOyTvb6cheuheyrvm8QhRv5jV0y2qigUqkHYp5f/ihIAY7ZIOkTKw7o24sgjXa7zLckhxFiNY9+U0qMT7mvfxWnC/ZBZnXK7SamYXmu/LgJeNyhqrJGrCtdJyO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699207898; c=relaxed/simple; bh=7hZ/4ugcP1f6wBDb6LgX+/mrKNm8hSBwx+QkllCyqiA=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=M744BzmNLmSJ3Uq0ArSHHNem4uwc3pZXJCzUbrQIBeh3EE9moVV6Emb6PdK03rJ9HV7UfRdaJNu7NzFNtq8ZBM/lZNPCaZzqYRQ3pCfOmPp+KSl5pwBMmiisvUJg/p54qh/+00PgM7Wb+JO9UVon/gHbA5uLC7A2QMwPz6Ozk4c= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5003a.ext.cloudfilter.net ([10.0.29.159]) by cmsmtp with ESMTPS id zZiZq922cjtZ3zhayqO07s; Sun, 05 Nov 2023 18:11:36 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id zhavqMJO7Zs8Wzhawq2vMb; Sun, 05 Nov 2023 18:11:34 +0000 X-Authority-Analysis: v=2.4 cv=YKGMdDKx c=1 sm=1 tr=0 ts=6547dad6 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=BNY50KLci1gA:10 a=Qbun_eYptAEA:10 a=sVPs-MVso7Ic29TWYLEA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TrV6ktD6lv/+/OUCZFelICN/Sn4BUdivdJUW4mdjy/8=; b=vgVeH0xnEHuLJZZVUvjnfcH+I9 FycnjJW0+bT3J7t8nGZa1Yk4djc0TKqmeyHcZHISRF1+BMxzOAMMRmGQz/Dv+hjEln2+Jo0uDWPSq HPFUxJN3JIqnhrbngSrAHx03k; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:51014 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1qzhav-003Y66-1u for gdb-patches@sourceware.org; Sun, 05 Nov 2023 11:11:33 -0700 From: Tom Tromey Date: Sun, 05 Nov 2023 11:12:00 -0700 Subject: [PATCH v2 22/31] Use read_var_value overload in py-finishbreakpoint.c MIME-Version: 1.0 Message-Id: <20231105-split-objfile-2023-bound-sym-october-v2-22-dbd2d158bbc3@tromey.com> References: <20231105-split-objfile-2023-bound-sym-october-v2-0-dbd2d158bbc3@tromey.com> In-Reply-To: <20231105-split-objfile-2023-bound-sym-october-v2-0-dbd2d158bbc3@tromey.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.77.73 X-Source-L: No X-Exim-ID: 1qzhav-003Y66-1u X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net ([192.168.0.21]) [97.122.77.73]:51014 X-Source-Auth: tom+tromey.com X-Email-Count: 23 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFVOuykq8AnssoBLjV7rKQUDYu1wT8IY1ciGupaH7B6j/5ufYGFeEEItP0dLD4bmhfcRUIQNQqinZUX0pLD/1BCIYmTx+1NZc8we7mlcMTRg73ajECWt ZTonPxoX/twgwZQNOUkKBPMCghL2lj4sqv0S10XiO87uMAsqQTnQh3+mqthwXrQo9dEzFSbVhhs0kVqp9+AUBM3+EZbS5tnuj3Y= X-Spam-Status: No, score=-3024.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org This chanseg py-finishbreakpoint.c to use the new read_var_value overload. --- gdb/python/py-finishbreakpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c index 04fc8c9e8a7..53ba41bd157 100644 --- a/gdb/python/py-finishbreakpoint.c +++ b/gdb/python/py-finishbreakpoint.c @@ -252,7 +252,8 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs) { if (get_frame_pc_if_available (frame, &pc)) { - struct symbol *function = find_pc_function (pc).symbol; + block_symbol b_fun = find_pc_function (pc); + symbol *function = b_fun.symbol; if (function != nullptr) { struct type *ret_type = @@ -264,7 +265,7 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs) scoped_value_mark free_values; /* Ignore Python errors at this stage. */ - value *func_value = read_var_value (function, NULL, frame); + value *func_value = read_var_value (b_fun, frame); self_bpfinish->function_value = value_to_value_object (func_value); PyErr_Clear ();