This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit/mips] For elf_flags, use the previous arch


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]