This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: [PATCH] RS6000 and PowerPC CPU types


On 12-May-2000, Geoff Keating wrote:

>Good.  I don't see your point.

Nick:      coff_set_arch_mach_hook() chooses bogus arch and mach values.
Geoffrey:  Why does that make any difference?
Nick:      Because GDB uses those values to choose register sets.

>I think you want to be reading the c_impl
>field of the core_dumpx structure stored in the core file.

Thanks, I didn't know about that.

>It is probably useful that if the user takes a binary which only runs
>on CPU type A, tries to run it on CPU type B, and runs gdb on the
>resulting core file, then gdb should not crash trying to read
>nonexistent registers :-).

Good point.

You've convinced me that GDB should not use _bfd.arch_info to choose
register sets.

However, as you mention later, GDB could use it for choosing instruction
sets during disassembly, and presumably there are other uses for it.

Therefore, isn't it worthwhile making it be as correct as possible?  And
isn't it incorrect to assume that XCOFF64 implies a 620?

Nick

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