From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107715 invoked by alias); 27 Feb 2019 17:56:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 107700 invoked by uid 89); 27 Feb 2019 17:56:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-ot1-f66.google.com Received: from mail-ot1-f66.google.com (HELO mail-ot1-f66.google.com) (209.85.210.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Feb 2019 17:56:28 +0000 Received: by mail-ot1-f66.google.com with SMTP id e15so5555326otk.6 for ; Wed, 27 Feb 2019 09:56:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/Yf1A41KqY7CDf/MMIP/8nvXnG1vjlmAOO2LGH5JmJY=; b=Z0gXLZERzTPu5wqcIW11x/CLAgnAvhNSa4bFyGUvA550QgzTbITIqN31FG03xGKO9T 2ZJoH6CHNO1Ga6Lm3ON8mEBCAkyuoORBPcXBdLmRoW6tmSvy6A2s/MR5buJfPJLWq4P7 FLKuKdl6bXUo6o/ofcXNOtqFv3I2MVKzuTDB21oIVxGQrtUzLBW2TqJvJZHhc4EcXMQC g9Iptzl1r5YPu70WbEvuszsl/Hzene5zfjTfOeKkUzH0eog1OySSvW+SHjyjLjB2yu+H Dp+cjuEc1fiJ0/ezbT1N7SSMZeOLx8ObilqAdxDmqvQronSgAI6IzgF5Qm/9Op4wYI54 rDZQ== MIME-Version: 1.0 References: <439bf4f6859a539472a2e51a028b9503@polymtl.ca> <20190225201715.144927-1-rupprecht@google.com> <1b6df15638153631ea87fa1bc7c24dd2@polymtl.ca> <87wolmlh8g.fsf@tromey.com> <878sy187tp.fsf@tromey.com> <3c7c4b2b2211dee0d0cb273a2934dde9@polymtl.ca> In-Reply-To: <3c7c4b2b2211dee0d0cb273a2934dde9@polymtl.ca> From: Eric Christopher Date: Wed, 27 Feb 2019 17:56:00 -0000 Message-ID: Subject: Re: [PATCH] [dwarf2read] Fix crash when loading dwp files: calculate num_sections based on actual section indices, not just the number of sections. To: Simon Marchi , Adrian Prantl Cc: Tom Tromey , Jordan Rupprecht , gdb-patches , David Blaikie , Douglas Evans Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00488.txt.bz2 (Adding in Adrian) While llvm-dwp will run just fine on osx as a program, it's not intended for the platform. I don't know if there are any plans for dwarf5-esque split dwarf on apple platforms. Adrian might be able to comment more. -eric On Wed, Feb 27, 2019 at 9:40 AM Simon Marchi wrote: > > On 2019-02-27 12:22, Tom Tromey wrote: > >>>>>> "Simon" == Simon Marchi writes: > > > > Simon> So my impression now is that dwp doesn't apply to non-ELF > > projects. > > Simon> It is built as part of gold, which itself deals only with ELF, > > AFAIK. > > Simon> I tried to build gold on AIX, without success. > > > > I think there's also llvm-dwp. Does it work on Mach-O? > > > > Tom > > Of course, there's llvm-dwp, it's the reason this patch was written :). > > Maybe David (in CC) can help answer this? > > Simon