From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7054 invoked by alias); 23 May 2011 15:32:25 -0000 Received: (qmail 7043 invoked by uid 22791); 23 May 2011 15:32:24 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 May 2011 15:32:09 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 4D16CCB0242; Mon, 23 May 2011 17:32:08 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9v1uYUfPU6Y2; Mon, 23 May 2011 17:32:05 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 55665CB023D; Mon, 23 May 2011 17:32:05 +0200 (CEST) Subject: Re: [PATCH 2/4] dwarf2read.c: handle alternate dwarf2 debug sections name. Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: Date: Mon, 23 May 2011 15:32:00 -0000 Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: <29F862D3-A02A-4743-B8A3-269B858532BF@adacore.com> References: <1306146544-3925-1-git-send-email-gingold@adacore.com> <1306146544-3925-3-git-send-email-gingold@adacore.com> To: Tom Tromey X-IsSubscribed: yes 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 X-SW-Source: 2011-05/txt/msg00529.txt.bz2 On May 23, 2011, at 5:22 PM, Tom Tromey wrote: >>>>>> "Tristan" == Tristan Gingold writes: > > Tristan> Unfortunately, some object file format cannot accept the > Tristan> standard dwarf2 debug section names. This is in particular the > Tristan> case of XCOFF (aix), which has only 8 chars section names. In > Tristan> order to support dwarf2 on aix, we need to allow alternate > Tristan> section names. > > It seems reasonable to me, but I would like to understand why you took > this route, rather than the section-name-remapping approach taken by > bfd/mach-o.c. > > The mach-o approach has the nice quality that it is encapsulated in BFD. Simply because the XCOFF maintainer was against this approach: http://sourceware.org/ml/binutils/2011-04/msg00364.html Both approach make sense... Thank you for the reviews. Tristan.