From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28036 invoked by alias); 26 Feb 2013 18:24:09 -0000 Received: (qmail 28026 invoked by uid 22791); 26 Feb 2013 18:24:07 -0000 X-SWARE-Spam-Status: No, hits=-8.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_EG X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Feb 2013 18:23:56 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1QINt4G016632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Feb 2013 13:23:56 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1QHUPVY025770; Tue, 26 Feb 2013 12:30:26 -0500 Message-ID: <512CF131.5020105@redhat.com> Date: Tue, 26 Feb 2013 18:24:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Jiong Wang CC: gdb-patches@sourceware.org, Walter Lee Subject: Re: [RFC/TileGX 2/2] fix gdbserver bug for 32bit elf References: <5110E21A.2060308@tilera.com> In-Reply-To: <5110E21A.2060308@tilera.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00660.txt.bz2 On 02/05/2013 10:42 AM, Jiong Wang wrote: > for tilegx, all general registers are 64bit, while the pseudo 'pc' is 32bit under tilegx32. > > gdb client treat 'pc' correctly in > > static struct type * > tilegx_register_type (struct gdbarch *gdbarch, int regnum) > { > if (regnum == TILEGX_PC_REGNUM) > return builtin_type (gdbarch)->builtin_func_ptr; > > > while gdbserver always treat it as 64bit, there > is mismatch. > > gdb/ChangeLog: > * configure.tgt: Enable gdbserver for tilegx This bit is an unrelated change. Please split it out into a separate patch, and post it in a new self-contained thread, along with its own rationale. -- Pedro Alves