From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1353 invoked by alias); 22 May 2005 17:15:32 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1339 invoked by uid 22791); 22 May 2005 17:15:29 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 22 May 2005 17:15:29 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DZu2q-0000Kt-6j; Sun, 22 May 2005 13:15:20 -0400 Date: Sun, 22 May 2005 20:40:00 -0000 From: Daniel Jacobowitz To: Wu Zhou Cc: Manoj Iyer , gdb-patches@sources.redhat.com Subject: Re: [RFC] gdb.server testcases (resend) Message-ID: <20050522171520.GA1223@nevyn.them.org> Mail-Followup-To: Wu Zhou , Manoj Iyer , gdb-patches@sources.redhat.com References: <1116490026.428c492a8f3d8@imap.linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1116490026.428c492a8f3d8@imap.linux.ibm.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00503.txt.bz2 On Thu, May 19, 2005 at 04:07:06AM -0400, Wu Zhou wrote: > 2. 64-bits gdbserver with 32-bits debuggee > > without Daniel's patch, the 64-bits gdbserver on my power4 box also > report "reading register I/O error" at register 1. After applying > Daniel's patch, gdbserver could start the 32-bits debuggee and begin > to wait for the remote gdb's connection. > > On the host side, my gdb session is somewhat the same as yours. It > seems that gdb at the host side expects 32-bits register, something > like: > > T0501:ffffe6b0;40:40010470; > > but the remote gdbserver sends back 64-bits value: > > T0501:00000000ffffe6b0;40:0000000040010470; > > So it report "Remote register badly formatted" error. Yes, this will not work. The correct way to handle this is to wait until I have implemented the available target features proposal I've posted on gdb@, and then I can make gdbserver inform GDB that 64-bit registers are available so that it will expect them. This will require some surgery in GDB, I'm sure. The way MIPS implements this is not very reliable. > Program received signal SIGFPE, Arithmetic exception. > 0x000000800013fd64 in .vfprintf () from /lib64/tls/libc.so.6 > (gdb) > I have no idea what causes this one, sorry. -- Daniel Jacobowitz CodeSourcery, LLC