From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4747 invoked by alias); 10 Oct 2006 08:37:04 -0000 Received: (qmail 4739 invoked by uid 22791); 10 Oct 2006 08:37:03 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO mswbj01.sunnorth.com.cn) (218.247.162.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Oct 2006 08:37:01 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by mswbj01.sunnorth.com.cn (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Tue, 10 Oct 2006 16:38:26 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id k9A9nxmQ023060 for ; Tue, 10 Oct 2006 17:49:59 +0800 To: gdb@sourceware.org MIME-Version: 1.0 Subject: register type as signed or unsigned? X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: ligang@sunnorth.com.cn Date: Tue, 10 Oct 2006 08:37:00 -0000 Content-Type: text/plain; charset="US-ASCII" 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/msg00051.txt.bz2 hello all, I am porting GDB to a new target. I am not aware of the meaning of register type. You can do as follows: set_gdbarch_register_type (gdbarch, builtin_type_int32); or set_gdbarch_register_type (gdbarch, builtin_type_uint32); What is the real difference between the two situation? Why should GDB specify the register type as signed or unsigned? Dose it mean the former must use regcache_cooked_read_signed() and the latter must use regcache_cooked_read_unsigned()? Best regards Ligang