This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit/mips] For elf_flags, use the previous arch
- From: Andrew Cagney <cagney at gnu dot org>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 08 Jan 2004 12:55:20 -0500
- Subject: Re: [commit/mips] For elf_flags, use the previous arch
- References: <3FFCE551.30009@gnu.org> <20040108142146.GA17207@nevyn.them.org>
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<something>
fpu_type 0 -> 0
(gdb) set mipsfpu none
this was changing:
elf_flags 0x<something> -> 0
fpu_type 0 -> 2
but should have changed:
elf_flags 0x<something> -> 0x<something>
fpu_type 0 -> 2
(gdb) file foo
this was changing:
elf_flags 0 -> 0x<something>
fpu_type 2 -> 2
but should have changed:
elf_flags 0x<something> -> 0x<something>
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