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] legacy_[read/write]_register_gen


> That should be implemented as:
>> 
>> my_register_read (int regnum, ...)
>> {
>> if (regnum == MY_MIRROR_REGNUM)
>> regcache_read (MY_REAL_REGNUM, buf)
>> else
>> regcache_read (regnum, buf);
>> }
>> 
>> GDB no longer needs to have duplicated register values in the regcache.
>> 
>> Anyway, I have figured out why the change is needed.  You can end up
>> with ``real'' registers in the [NUM_REGS .. NUM_REGS+NUM_PSEUDO_REGS)
>> range.  This happens (at present still theory) when a register that
>> isn't in the G packet is fetched.
> 
> 
> Shall I check it in?


Yes.  Thanks!

Andrew




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