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
On Thu, Jan 08, 2004 at 12:55:20PM -0500, Andrew Cagney wrote:
> >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
Thanks, I gotcha now. The unnecessary architecture happens after set
mpsfpu none.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer