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/ARM: Switch mode when setting PC


On Fri, Jan 16, 2004 at 02:12:18PM -0500, Andrew Cagney wrote:

> Or a lack of design, Arm needs to ensure that it doesn't define PC_REGNUM.


OK, I'll keep that in mind.



> >In the past we've tried to distinguish R15 from PC. This was especially > >useful in the legacy 26-bit mode where the CPSR bits *were* in R15.


Perhaps, in that case, we should have the PC as a pseudoregister. That would simplify a lot of arm-tdep.c.


That was my feeling too.

BTW, the user visible $pc is now typically per-frame and tied to the "unwound return address". If that pseudo-register were made visible things could get confusing.


Andrew



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