From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24301 invoked by alias); 11 Oct 2006 02:06:44 -0000 Received: (qmail 24293 invoked by uid 22791); 11 Oct 2006 02:06:42 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 11 Oct 2006 02:06:39 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GXTUP-0002Us-AL; Tue, 10 Oct 2006 22:06:33 -0400 Date: Wed, 11 Oct 2006 02:06:00 -0000 From: Daniel Jacobowitz To: Jan Kratochvil Cc: ligang@sunnorth.com.cn, gdb@sourceware.org Subject: Re: register type as signed or unsigned? Message-ID: <20061011020633.GA9579@nevyn.them.org> Mail-Followup-To: Jan Kratochvil , ligang@sunnorth.com.cn, gdb@sourceware.org References: <20061010125001.GA17340@nevyn.them.org> <20061011004812.GA4987@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061011004812.GA4987@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00057.txt.bz2 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 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