From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115134 invoked by alias); 29 Mar 2016 17:41:05 -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 115121 invoked by uid 89); 29 Mar 2016 17:41:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=evans, Evans, metal, hear X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 29 Mar 2016 17:41:04 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id C4622165450; Tue, 29 Mar 2016 17:41:02 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2THf1jD007165; Tue, 29 Mar 2016 13:41:02 -0400 Subject: Re: [PATCH] Remove i386bsd-tdep.o from x86_64-*-elf* target To: Doug Evans , gdb-patches@sourceware.org, joel.sherrill@oarcorp.com References: <94eb2c0bbbf28763bf052ee215f4@google.com> From: Pedro Alves Message-ID: <56FABE2D.20607@redhat.com> Date: Tue, 29 Mar 2016 17:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <94eb2c0bbbf28763bf052ee215f4@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-03/txt/msg00524.txt.bz2 On 03/25/2016 04:30 PM, Doug Evans wrote: > Hi all. > > I'm currently working on an x86_64 "bare metal" target and am finding > various problems (patches to follow once I get things cleaned up). > > In the process of cleaning things up, I'd like to make the following patch. > It's wrong to have bsd-anything (or linux, or ...) > in a bare $arch-elf target. > > Ok? This is fine with me. Though I too would like to hear from Joel about the rtems bit. > -x86_64-*-elf* | x86_64-*-rtems*) > - gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o" > - ;; > +x86_64-*-elf*) > + gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o" ... > +x86_64-*-rtems*) > + gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o" > + ;; I've seen rtems configure patches fly by before, and IIRC, they tend to just just make rtems an alias for bare-metal elf. That seems to be supported by other gdb/configure.tgt !x86 rtems stanzas. I'm curious since that file contains support for old BSD a.out ports (that is, !elf), and I'm proposing removing a.out support in another patch. Joel, does rtems really need anything in i386bsd-tdep.c? Thanks, Pedro Alves