This is the mail archive of the rda@sources.redhat.com mailing list for the rda 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: [RFC] Revise interfaces for *_bytes_{from,to}_reg()


On Nov 27, 11:33am, Kevin Buettner wrote:

> The patch below revises the gdbserv_{be,le,host}_bytes_{to,from}_reg()
> interfaces so that the correct padding/truncation occurs when the source
> and destination sizes differ.  (I've thought about the problem of sign
> extension on MIPS, but I'm punting on it for now.)

Since I'm doing MIPS, I really can't punt on it for very long, so I'm
thinking some more about it now...

I'm considering adding gdbserv_{host,le,be}_signed_bytes_{to,from}_reg().
Another approach is to add a parameter (flag) to the existing functions
which indicate whether signed or unsigned extension should be done.

Opinions?

Kevin


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