From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1919 invoked by alias); 21 May 2007 14:09:09 -0000 Received: (qmail 1773 invoked by uid 22791); 21 May 2007 14:09:07 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 May 2007 14:09:04 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 7D5F84B267; Mon, 21 May 2007 09:09:01 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id CD3184B262; Mon, 21 May 2007 09:09:00 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1Hq8ZH-0002kt-QO; Mon, 21 May 2007 10:08:59 -0400 Date: Mon, 21 May 2007 14:09:00 -0000 From: Daniel Jacobowitz To: "Maciej W. Rozycki" Cc: gdb-patches@sourceware.org Subject: Re: [rfc] Avoid MIPS port breakage on large registers Message-ID: <20070521140859.GA10409@caradoc.them.org> Mail-Followup-To: "Maciej W. Rozycki" , gdb-patches@sourceware.org References: <20070521130529.GA1392@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes 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: 2007-05/txt/msg00344.txt.bz2 On Mon, May 21, 2007 at 03:01:30PM +0100, Maciej W. Rozycki wrote: > On Mon, 21 May 2007, Daniel Jacobowitz wrote: > > > I am about to post target-described register support for the MIPS > > port. One thing I noticed while testing it was that "info registers" > > went off into the woods on O32 when I added an extra 64-bit register; > > there's an unsigned loop until regsize - abi_regsize, which is > > supposed to catch 32-bit registers on N64, but runs almost forever > > given a 64-bit integer register on O32. This patch just prints such > > registers on their own row. > > Hmm, out of curiosity: what kind of 64-bit register have you got on o32? It's the $restart "register" that I just posted support for. Gdbserver doesn't know the program's ABI, so a mips64-linux gdbserver always reports 64-bit registers. GDB knows to translate $pc to 32-bit, but mips-tdep.c doesn't know anything about special handling for $restart (and I didn't think it was important to add, with this bug fixed). The register only ever holds internal errno values (0 or 512-514). -- Daniel Jacobowitz CodeSourcery