From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2bnNFzhOfGZkXw8AWB0awg (envelope-from ) for ; Wed, 26 Jun 2024 13:22:00 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=hWKg4k5c; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4E01C1E0C1; Wed, 26 Jun 2024 13:22:00 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 39E171E030 for ; Wed, 26 Jun 2024 13:21:58 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C13D2387103B for ; Wed, 26 Jun 2024 17:21:57 +0000 (GMT) Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 517F13871016 for ; Wed, 26 Jun 2024 17:21:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 517F13871016 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 517F13871016 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719422496; cv=none; b=D18HQkR4wKPgkdx9bQcicT6uopyka7iFZ++TZOXSAArhQTsZ2/DOBT5zyOJ3DSvrGvHTdqmqZT+rrydmcZCOYmzOCXg76OWQAFvSuYoGbEe7i4J3I1P1d6pBr6uonXpzbVaQQb9JsU88/SXqWY/nXUQFCUQlHOzGsU1OijjluPU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719422496; c=relaxed/simple; bh=A+G7EfG1o7PDQ9+Rsc3g3epRLfyz3WqGfhBD4AOSbkQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=h7QygSP00+qkzlRFPQZvv1LgYLEtwB8WujCjeHnrVv3l2KZg8SL4kYaO2kZkO2ldf4/oKHSDa3Eua+lzoyxOcaqtqdWReiDxxRSP5/Jl45jE5KKnaoxwpPhWXQhUlFzF3wDoR4b3ntOC+9KdN+AxfWS9869LDFC5fEBpxSK6wJA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5004a.ext.cloudfilter.net ([10.0.29.221]) by cmsmtp with ESMTPS id MUIOsJYJYjfBAMWKrsy44M; Wed, 26 Jun 2024 17:21:33 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id MWKpsEDd3GDo0MWKqs36Xw; Wed, 26 Jun 2024 17:21:32 +0000 X-Authority-Analysis: v=2.4 cv=I+uuR8gg c=1 sm=1 tr=0 ts=667c4e1c a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=T1WGqf2p2xoA:10 a=Qbun_eYptAEA:10 a=CCpqsmhAAAAA:8 a=3Ahr7LcFT9dC7PWVPuEA:9 a=zgiPjhLxNE0A:10 a=ul9cdbp4aOFLsgKbc677:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: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=fCSNO+pLBzOZ7jW3bungxzViEdb0qGhfZzJoxY8aRE8=; b=hWKg4k5cvL3AQ9vwsDtCVthZHy j3dRiJ8ORTH772itOwImJPvS4bbJdqUMFMGrkwYbFyGAgFlcAULMrd3T+YIGnJJgSAzfFKI6Kl3e7 mF7SKpa7f6bBB+tmH4jVb8uMn; Received: from 97-122-118-144.hlrn.qwest.net ([97.122.118.144]:59736 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sMWKp-0042hh-1L; Wed, 26 Jun 2024 11:21:31 -0600 From: Tom Tromey To: "Dmitry.Neverov via Gdb" Cc: "Dmitry.Neverov" Subject: Re: symbol files in python In-Reply-To: <87ttimgte3.fsf@lubuntu2.mail-host-address-is-not-set> (Dmitry Neverov via Gdb's message of "Sat, 25 May 2024 10:58:28 +0200") References: <87ttimgte3.fsf@lubuntu2.mail-host-address-is-not-set> X-Attribution: Tom Date: Wed, 26 Jun 2024 11:21:30 -0600 Message-ID: <87sewzsjqd.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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.118.144 X-Source-L: No X-Exim-ID: 1sMWKp-0042hh-1L X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-118-144.hlrn.qwest.net (murgatroyd) [97.122.118.144]:59736 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfAdkmDf8sn51Al1bEk0Fp3xdfgPE9IcJxHui4Bvj1lJxQd6YAa3v39wY4XHE47LhgAAu/Ivlafq3pbkb6R/UBANmcyrptYNB3tzaWXbID8nvS8LBXn13 V0mMciTflYLVwi6zYX0moci1mNHYHWZFDwWZ7p83M7mJfayiHIfL3xPWLas2P8ZUSNTgnwE8Ema4PA== X-Spam-Status: No, score=-3013.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" >>>>> "Dmitry" == Dmitry Neverov via Gdb writes: Dmitry> I'm trying to filter out uninitialized variables in a frame by checking Dmitry> their lines in python, something like this: I suspect this will not yield good results when optimization is present. I normally see this kind of thing as GIGO -- gdb does what the compiler tells it. If the compiler thinks a variable is uninitialized at some PC, it's free to omit that from the location list. Dmitry> Is it correct to expect that symbols in blocks inside a function will Dmitry> have the same file as the function's frame? Not always, I think because of inlining. However I'm not really sure. Compilers can emit pretty much anything they like. Tom