This is the mail archive of the
rda@sources.redhat.com
mailing list for the rda project.
Re: [RFC] Revise interfaces for *_bytes_{from,to}_reg()
- From: Kevin Buettner <kevinb at redhat dot com>
- To: rda at sources dot redhat dot com
- Date: Wed, 27 Nov 2002 11:49:14 -0700
- Subject: Re: [RFC] Revise interfaces for *_bytes_{from,to}_reg()
- References: <1021127183338.ZM31443@localhost.localdomain>
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