From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122242 invoked by alias); 28 Feb 2020 19:11:11 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 122229 invoked by uid 89); 28 Feb 2020 19:11:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*MI:sk:1778890, H*i:sk:1778890, H*f:sk:1778890, HTo:U*ebotcazou X-HELO: smtp.ispras.ru Received: from winnie.ispras.ru (HELO smtp.ispras.ru) (83.149.199.91) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Feb 2020 19:11:10 +0000 Received: from monopod.intra.ispras.ru (monopod.intra.ispras.ru [10.10.3.121]) by smtp.ispras.ru (Postfix) with ESMTP id D3C00203C1; Fri, 28 Feb 2020 22:11:07 +0300 (MSK) Date: Fri, 28 Feb 2020 19:11:00 -0000 From: Alexander Monakov To: Eric Botcazou cc: gcc-patches@gcc.gnu.org, Jason Merrill , Alexey Neyman Subject: Re: [PATCH v2] debug/93751 Option to generate DIEs for external variables - ping In-Reply-To: <17788902.SoH9M9z9oE@polaris> Message-ID: References: <94e5ba1e-bf3c-c238-1019-58178542a8d0@redhat.com> <17788902.SoH9M9z9oE@polaris> User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2020-02/txt/msg01658.txt.bz2 On Fri, 28 Feb 2020, Eric Botcazou wrote: > > +1 - I think Alexey correctly pointed out in the Bugzilla that debuginfo > > growth from this change would be minimal (usually the number of global > > variables is very small compared to number of functions (and linemap info). > > Well, this will drag the associated types too, so figures would be welcome... Hm. So apparently at -g1 we don't emit type information for functions, and gdb sees each function as 'void foo()' regardless of actual prototype. Otherwise I would expect most of the types to be already present in debug info. I wonder if it would make sense to emit defined variables in a similar fashion, i.e. only address and size? (assuming that still fits Alexey's needs) Thanks. Alexander