[commit/mips] For elf_flags, use the previous arch
Andrew Cagney
cagney@gnu.org
Thu Jan 8 17:55:00 GMT 2004
> 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
More information about the Gdb-patches
mailing list