From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LM1zL-0006pV-1T for qemu-devel@nongnu.org; Sun, 11 Jan 2009 10:12:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LM1zJ-0006ob-4D for qemu-devel@nongnu.org; Sun, 11 Jan 2009 10:12:29 -0500 Received: from [199.232.76.173] (port=51252 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LM1zI-0006oU-VC for qemu-devel@nongnu.org; Sun, 11 Jan 2009 10:12:29 -0500 Received: from mail-bw0-f12.google.com ([209.85.218.12]:49486) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LM1zI-00055r-Ga for qemu-devel@nongnu.org; Sun, 11 Jan 2009 10:12:28 -0500 Received: by bwz5 with SMTP id 5so20258153bwz.10 for ; Sun, 11 Jan 2009 07:12:27 -0800 (PST) Message-ID: Date: Sun, 11 Jan 2009 17:12:27 +0200 From: "Blue Swirl" Subject: Re: [Qemu-devel] Using GDB to debug the sparc64 target In-Reply-To: <496A07B3.3090706@jermar.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <496A07B3.3090706@jermar.eu> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 1/11/09, Jakub Jermar wrote: > Hi, > > I'd like to help with debugging the sparc64 target (to get HelenOS > run on it). I'd like to use gdb for that purpose, however, I get > the following error when I try to connect to qemu from gdb: > > GNU gdb 6.8 > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc64-linux-gnu". > (gdb) target remote localhost:1234 > Remote debugging using localhost:1234 > [New Thread 1] > Remote 'g' packet reply is too long: 00000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 > 00000000000000000000000000000000000000000000000000000000000000000000000000001fff0000020000001fff00000240000000000000407000000000000000000000000000000000000000000000000 > > Is this a known issue? Is there a workaround for this? > The qemu version I am running is trunk, the host is > an ordinary ia32 system. The register size is still incorrect (32 bits) in the GDB you produced. Also I can't make a working cross-gdb. The problem is on GDB side: on Sparc64 OpenBSD, where everything is 64 bits, there is no problem and the protocol matches what Qemu produces. I'd be happy to be proven wrong, though. Currently my OpenBSD setup is slightly broken, so this comes from memory.