From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30600 invoked by alias); 8 Jan 2004 17:55: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 30593 invoked from network); 8 Jan 2004 17:55:20 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 8 Jan 2004 17:55:20 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 88ED32B8F; Thu, 8 Jan 2004 12:55:20 -0500 (EST) Message-ID: <3FFD9988.1040706@gnu.org> Date: Thu, 08 Jan 2004 17:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [commit/mips] For elf_flags, use the previous arch References: <3FFCE551.30009@gnu.org> <20040108142146.GA17207@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00211.txt.bz2 > On Thu, Jan 08, 2004 at 12:06:25AM -0500, Andrew Cagney wrote: > >> Hello, >> >> This fixes a subtle edge case. Given the sequence: >> >> (gdb) file foo this changes: elf_flags 0 -> 0x fpu_type 0 -> 0 >> (gdb) set mipsfpu none this was changing: elf_flags 0x -> 0 fpu_type 0 -> 2 but should have changed: elf_flags 0x -> 0x fpu_type 0 -> 2 >> (gdb) file foo this was changing: elf_flags 0 -> 0x fpu_type 2 -> 2 but should have changed: elf_flags 0x -> 0x fpu_type 2 -> 2 i.e., no change >> >> An extra, unnecessary arch was being created after the second "file foo". > > > After the "file foo"? I'm confused as to how this case can trigger, > since we ought to have info.abfd at that point, right? Andrew