Re: register type as signed or unsigned?

Daniel Jacobowitz
2006-10-11T02:06:44Z

On Wed, Oct 11, 2006 at 02:48:12AM +0200, Jan Kratochvil wrote:
> On Wed, 11 Oct 2006 02:37:57 +0200, ligang@sunnorth.com.cn wrote:
> > Daniel Jacobowitz <drow@false.org> wrote on 2006-10-10 20:50:02:
> ...
> > > No; in fact, it doesn't make much difference. You should use whichever
> > > is "more natural" for your target instruction set; it will affect
> > > "print $reg" and "info reg".
> >
> > That is to say, whether builtin_type_int32 or builtin_type_uint32 is
> > correct for GDB.
>
> If the register is used as address, use "uint32".

In fact, if you know the register is always used as an address, use
a pointer type.

--
Daniel Jacobowitz
CodeSourcery