From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12555 invoked by alias); 11 Oct 2006 01:11:35 -0000 Received: (qmail 12545 invoked by uid 22791); 11 Oct 2006 01:11:34 -0000 X-Spam-Check-By: sourceware.org Received: from sadr.equallogic.com (HELO sadr.equallogic.com) (66.155.203.134) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Oct 2006 01:11:28 +0000 Received: from sadr.equallogic.com (localhost.localdomain [127.0.0.1]) by sadr.equallogic.com (8.12.8/8.12.8) with ESMTP id k9B1BQ6Y000589 for ; Tue, 10 Oct 2006 21:11:26 -0400 Received: from M31.equallogic.com (M31.equallogic.com [172.16.1.31]) by sadr.equallogic.com (8.12.8/8.12.8) with SMTP id k9B1BOmF000584; Tue, 10 Oct 2006 21:11:24 -0400 Received: from PKONING.equallogic.com ([172.16.3.180]) by M31.equallogic.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 10 Oct 2006 21:11:24 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17708.17583.546000.498003@gargle.gargle.HOWL> Date: Wed, 11 Oct 2006 01:11:00 -0000 From: Paul Koning To: jan.kratochvil@redhat.com Cc: ligang@sunnorth.com.cn, gdb@sourceware.org Subject: Re: register type as signed or unsigned? References: <20061010125001.GA17340@nevyn.them.org> <20061011004812.GA4987@host0.dyn.jankratochvil.net> X-Mailer: VM 7.07 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid 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/msg00056.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> On Wed, 11 Oct 2006 02:37:57 +0200, ligang@sunnorth.com.cn Jan> wrote: >> Daniel Jacobowitz wrote on 2006-10-10 20:50:02: Jan> ... >> > 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. Jan> If the register is used as address, use "uint32". Only if addresses are unsigned. That's the usual case, but MIPS has the odd convention that addresses are viewed as signed. paul