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: [RFA] ppc-linux-nat.c: Don't use regmap[] anymore.


> On Nov 29,  4:45pm, Andrew Cagney wrote:
> 
> 
>> I suspect a few more targets could do with the same treatment. 
>> Eliminating that hardwired regmap[] would probably help a few more targets.
> 
> 
> Perhaps.  But, I think each target better have good reasons for doing
> so before undertaking such a transformation.  Replacing the hardwired
> regmap[] with a function with the same constants hardwired into it
> doesn't accomplish much (aside from slowing things somewhat).

The problem is, they are not constant.  Because of limitations in the 
way other parts of GDB currently work, an architecture change can cause 
those offsets to change :-(  Check x86-64 vs i386.

I don't think performance is an issue here.

enjoy,
Andrew



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