From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29084 invoked by alias); 24 Sep 2010 12:58:25 -0000 Received: (qmail 29067 invoked by uid 22791); 24 Sep 2010 12:58:24 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.17.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Sep 2010 12:58:19 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.1/8.13.1) with ESMTP id o8OCwAcf028922 for ; Fri, 24 Sep 2010 12:58:10 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8OCw95n3633302 for ; Fri, 24 Sep 2010 14:58:09 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o8OCw9Ih024761 for ; Fri, 24 Sep 2010 14:58:09 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id o8OCw8Sx024740; Fri, 24 Sep 2010 14:58:08 +0200 Message-Id: <201009241258.o8OCw8Sx024740@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 24 Sep 2010 14:58:08 +0200 Subject: Re: gdbserver 7.1 unable to read registers To: will_wagner@carallon.com (William Wagner) Date: Fri, 24 Sep 2010 12:58:00 -0000 From: "Ulrich Weigand" Cc: gdb@sourceware.org ('gdb@sourceware.org') In-Reply-To: <4C9B8B8A.7030506@carallon.com> from "William Wagner" at Sep 23, 2010 06:16:58 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00128.txt.bz2 William Wagner wrote: > I have built up a cross toolchain for an arm target with an x64 host. I > have compiled gdb/gdbserver 7.1. > > When I try to debug my application I can connect to gdbserver fine but I > get an error when gdb tries to read the registers: > > Remote 'g' packet reply is too long: > 00000000b07edbbe0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c07ddbbe00000000a007004010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 > > As far as I can tell the error is because the target and the host > disagree as to how many registers there are on the target, however I > compiled gdb and gdbserver with the same options. > > How can I tell what register information gdb is expecting? Is there some > either a compile time or runtime option I need to set with gdb so they > agree on numbers of registers? Usually, gdbserver will inform GDB via the remote protocol about the set of registers supported on the platform, and GDB is supposed to automatically take that information into account. However, this requires that GDB is built to include XML support to parse this configuration information; if the expat libraries were not available when you built GDB, the configure process might have decided to build GDB without XML support instead ... Can you try rebuilding with the --with-expat configure option? This will cause the build to fail if XML support is not available. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com