From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by sourceware.org (Postfix) with ESMTPS id C04583857B9E for ; Fri, 10 Jun 2022 17:00:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C04583857B9E Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-fe51318ccfso3975003fac.0 for ; Fri, 10 Jun 2022 10:00:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yfuoPDhCuurPB2Uiym9sIJ2BUArUA8ZAqmzn01VsmXw=; b=OhnC3lHzA65CKPmsTKKh279lIfrsJ5BxPVzHU4iS9JQX025p1TyUlo26t9vDVmxRml 6F2fjyHI487OcWFXMGqyWumAAxgWNd+mIOi7yFepWmN5OigfDeaMcG36UXm1lPmv2Kn4 YbpRE/f8btIik7wXNF7LNUwICTC5NHLBm0X+e7JbXThEQYkNJPQDUqVxe8qfhcp1B5Pv 5f+QfYr7KSsBtTJejvUupjGFwWOpX5KTw5AG2r8bjrarotv7w9rVdP0qH30JGfDRbcMV OcLS6qNfF36Usgid/ekvWJCo+kptYuEH3a8ilABmRqL6qaBkgO26dTgdqzb7WcaKs7Oq lxag== X-Gm-Message-State: AOAM5325pJdKV6nO6QtD70CiUKtcx919Wz01L2wJ8kt6Y9AL/lS9HM75 mRhQE5QCxzQg+0VQRfFRYYSfIYjmhRX9vd2JGBBZRRzjVhQ= X-Google-Smtp-Source: ABdhPJyfWwT8uYPppP7vWDLvK5trIewU34FFy1M+EoXO3DrDeNgV3fwPfbpR59GyXqhMB6X5NPiVsWrpSLbM8q6CHXg= X-Received: by 2002:a05:6870:828e:b0:f5:d36a:f907 with SMTP id q14-20020a056870828e00b000f5d36af907mr432687oae.174.1654880412910; Fri, 10 Jun 2022 10:00:12 -0700 (PDT) MIME-Version: 1.0 References: <20220414153916.3468409-1-tromey@adacore.com> In-Reply-To: <20220414153916.3468409-1-tromey@adacore.com> From: Jim Wilson Date: Fri, 10 Jun 2022 10:00:02 -0700 Message-ID: Subject: Re: [PATCH] Ignore 0,0 entries in .debug_aranges To: Tom Tromey Cc: gdb-patches@sourceware.org X-Spam-Status: No, score=0.8 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, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2022 17:00:15 -0000 On Thu, Apr 14, 2022 at 8:39 AM Tom Tromey via Gdb-patches < gdb-patches@sourceware.org> wrote: > When running the internal AdaCore test suite against the new DWARF > indexer, I found one regression on RISC-V. The test in question uses > --gc-sections, and winds up with an entry in the middle of a > .debug_aranges that has both address and length of 0. In this > scenario, gdb assumes the entries are terminated and then proceeds to > reject the section because it reads a subsequent entry as if it were a > header. > FYI There is also an elfutils bug for this. https://sourceware.org/bugzilla/show_bug.cgi?id=27805 I don't think the elfutils problem has been fixed yet. I did notice that I got different results for RISC-V and x86_64. RISC-V gave me 0,0 pairs which is wrong, but x86_64 gave me 0,4 pairs which is OK. I don't know why the difference; I didn't investigate. Jim