From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAECB3858CDA; Mon, 30 Jan 2023 04:16:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAECB3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675052186; bh=97DNyBR+n3O6ncSm53DeGdSGOIkRyoQ7iU55QmRourw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UWVr4vJr8ZIvY3ZSOoV2/96dZVHlfMdIMNx58oQWprLNUdvyWn+LMSJRTFpQlbJdy 5+1+aGW/u/2ene3oIn60WSxkeSS37TMk/DmOe1mEI0Z6S0px8cW0F4bVk8Yx8t+Dfz x/C+ly8jP09J26KPUKDAjLqOBkKwJEO4V+LIpSf4= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30026] ctf test program gives weird results with "list" Date: Mon, 30 Jan 2023 04:16:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30026 --- Comment #4 from Tom Tromey --- (In reply to Nick Alcock from comment #3) > Is there any way to say "every source file", "global scope" or failing th= at > "the source file you're looking at right now"? Picking some random source > file that isn't even the one you're looking at feels hugely confusing and > isn't even right (since any given shared type might not be in scope in th= at > source file at all, though that's probably not a problem for debugger use, > which is one reason why CTF puts things at global scope so promiscuously.) There's not really directly a way to say that, but anyway you definitely can't do it by setting the symtab file to something other than a source file. I don't really know anything about CTF or its model. Are there situations where no source file is known at all? I see from the tests that sometimes source files are known. --=20 You are receiving this mail because: You are on the CC list for the bug.=