This is the mail archive of the gdb@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: read_register_byte can't work with pseudo-reg model



rearnsha@arm.com said:
> Would the following tweak be acceptable?  That is, only do the update
> if the register has a name.

>   else if (REGISTER_NAME (regnum) != NULL && *REGISTER_NAME (regnum)
> != '\0')
>     {
>       /* Is this register completely within the range the user is
> writing?  */
>       if (myregstart <= regstart && regend <= myregend)
>         write_register_gen (regnum, myaddr + (regstart - myregstart));

>       /* The register partially overlaps the range being written.  */
>       else
>         { 



I've just noticed that read_register_bytes is doing almost exactly this.  
Why do the two differ?

R.


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