From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 97F2A3894C00 for ; Tue, 1 Sep 2020 18:53:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 97F2A3894C00 Received: by mail-il1-x12c.google.com with SMTP id t4so2277196iln.1 for ; Tue, 01 Sep 2020 11:53:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q0jBwvZw6XSnf9e7AEOMZY4hZyaZb4iP0tXSz/c7YQ4=; b=X1UUJO9idnikcn7p6stm8393kfee3nf4jIuv5yD6UP06bDAqEnw/Novd7mrb3ScZz9 UKxT27xu0FN2A1ExRbW91uCWJeQvIjiF90ZhFhIZT8MUIHsYeIU6z5PJwRmSJUpzoSjB zJA8OzzuccIwczYQCayhjwXHUKn8yKghWoHyfNJx020nk/U/rAbhdCc9Vj1TkggXhwRB D7uqoq6ls7BIArT2TU/ksMnF6sN2n/YGAKIVhsV7SD+fySI5D02DQJ4aQp36o6Cn8fUd om0bKCG4nF47GAkBei0EQmW0rf4LgPxTjbuoL4PIiZMtoZD7tgZiw9ay68kdMeKwyawZ CxqQ== X-Gm-Message-State: AOAM533fOpn+9ZWTFx2LPbAjJZH+eQHYMu+MXKZ+crXCaVoTjKN4UNCT Y4v9w0QiBwsDdr+vCPkXsaIoIAOKI7tAEN3CPts= X-Google-Smtp-Source: ABdhPJwk0mosnRQlwyMPf1s02lpN812AfAnqD+Ml7O6lHkyHfa1ZM5fi2Z0qlkCeQTb13w6GtrENrt1MyiqjXvJjt6Q= X-Received: by 2002:a92:d843:: with SMTP id h3mr417568ilq.197.1598986431033; Tue, 01 Sep 2020 11:53:51 -0700 (PDT) MIME-Version: 1.0 References: <878sdt736g.fsf@tromey.com> In-Reply-To: <878sdt736g.fsf@tromey.com> From: David Blaikie Date: Tue, 1 Sep 2020 11:53:40 -0700 Message-ID: Subject: Re: DWARF5 and .gdb_index/.debug_names To: Tom Tromey Cc: Mark Wielaard , gdb@sourceware.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 18:53:53 -0000 On Tue, Sep 1, 2020 at 11:38 AM Tom Tromey wrote: > >>>>> "Mark" == Mark Wielaard writes: > > Mark> During the BoF Pedro mentioned that the GDB DWARF5 .debug_names > support > Mark> is incomplete/wrong. I was wondering whether there was a good > Mark> description of the issue and/or a bug report for it. > > It's been a while but last time I looked I thought gdb's process emitted > incorrect names. I filed this bug, with analysis: > > https://sourceware.org/bugzilla/show_bug.cgi?id=24820 > > gdb's reader probably also needs updating, since it relies on this same > incorrect reading of the standard. > > Having gdb write the index is mildly bad anyway. It should be in the > linker, and/or dwz or debuginfod. Putting it in gdb back in the > .gdb_index days was a mistake. > FWIW, there are times where you might not want to add this at production time - at least with lld, for instance, it takes significantly more memory/linker time. So if you're building more often than you're debugging, it might be nice to build without an index to speed up the build/test loop, then only pay the index building cost when you end up wanting to debug something. - Dave