From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14802 invoked by alias); 7 Jun 2002 20:27:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14791 invoked from network); 7 Jun 2002 20:27:20 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 7 Jun 2002 20:27:20 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 1AEA83E66; Fri, 7 Jun 2002 16:27:33 -0400 (EDT) Message-ID: <3D011734.7060700@cygnus.com> Date: Fri, 07 Jun 2002 13:27:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc3) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: GDB broken on MIPS targets with unmarked binaries References: <20020605200429.GA7956@nevyn.them.org> <3CFE7825.2030001@cygnus.com> <20020605205834.GA22729@nevyn.them.org> <20020605210838.GA518@nevyn.them.org> <3CFE8596.4010401@cygnus.com> <20020607014125.GA27272@nevyn.them.org> <3D010F9F.5080304@cygnus.com> <20020607200340.GA27462@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00062.txt.bz2 > It delays the computation until it is needed. It also happens to keep >> the old code working without having to add more macros :-) > > > Doesn't work. It's referenced in creating the register cache, which is > still before we have an architecture. We need to know this information > earlier. Any other ideas, or is my original patch OK? I'll commit a work-around. > By the way, I think the existing default: case in that switch is pretty > pointless anyway. Note that it selects an arbitrary number of argument > registers. It doesn't work when all the tools are configured mips-elf > (default to O32), which is why I suggested some time ago that we just > default to O32 in that configuration at least... that would make the > test numbers suck a bit less, and reduce the black magic factor a bit. Default for plain mips-elf? Yes sounds like a good idea. As the other variants get deleted they can fall back to that. (I take it this is the default for mips-elf-{as,gcc}. Andrew