From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17595 invoked by alias); 19 Aug 2002 23:09:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17585 invoked from network); 19 Aug 2002 23:09:21 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 19 Aug 2002 23:09:21 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 96F6D3DC6; Mon, 19 Aug 2002 19:09:18 -0400 (EDT) Message-ID: <3D617A9E.7000102@ges.redhat.com> Date: Mon, 19 Aug 2002 16:09:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason R Thorpe Cc: Simon Posnjak , gdb-patches@sources.redhat.com Subject: Re: [PATCH] set osabi command References: <1029446386.30623.13.camel@klada.dyndns.org> <3D6171DA.7000100@ges.redhat.com> <20020819154000.H2214@dr-evil.shagadelic.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00565.txt.bz2 > On Mon, Aug 19, 2002 at 06:31:54PM -0400, Andrew Cagney wrote: > > > It gets complex though because the user could enter a sequence like: > > > > (gdb) set architecture arm > > ... architecture forced to arm ... > > (gdb) set osabi arm_eabi_v1 > > ... osabi forced to arm_eabi_v1 > > (gdb) set architecture mips > > ... architecture forced to mips, what should happen to the OSABI? It > > can't remain arm_eabi_v1 ... > > > > Idea's? > > * If it's e.g. "NetBSD/ELF", it's perfectly valid for ARM and MIPS, > so it should stay the same. > > * Failing that, if the target triplet has a default OSABI, then > that should be selected. > > * Failing that, the "unknown" OSABI. Are you suggesting that a ``set architecture'' command affect the ``set osabi'' setting, possibly forcing it to some other value? Another option is: ... (gdb) set architecture mips OSABI arm_eabi_v1 invalid for mips architecture and possibly even: Force OSABI to ``auto''? (y or n) even figuring out that there is a clash is hairy. enjoy, Andrew