From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16049 invoked by alias); 24 Sep 2010 13:30:30 -0000 Received: (qmail 16034 invoked by uid 22791); 24 Sep 2010 13:30:29 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_QE X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Sep 2010 13:30:23 +0000 Received: by wwb34 with SMTP id 34so42546wwb.12 for ; Fri, 24 Sep 2010 06:30:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.146.193 with SMTP id i1mr568313wbv.143.1285335017685; Fri, 24 Sep 2010 06:30:17 -0700 (PDT) Received: by 10.216.39.3 with HTTP; Fri, 24 Sep 2010 06:30:17 -0700 (PDT) In-Reply-To: <20100924074709.GA6017@host1.dyn.jankratochvil.net> References: <4C9B8B8A.7030506@carallon.com> <20100924074709.GA6017@host1.dyn.jankratochvil.net> Date: Fri, 24 Sep 2010 13:30:00 -0000 Message-ID: Subject: Re: gdbserver 7.1 unable to read registers From: Jon Smirl To: Jan Kratochvil Cc: William Wagner , "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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/msg00129.txt.bz2 On Fri, Sep 24, 2010 at 3:47 AM, Jan Kratochvil wrote: > On Thu, 23 Sep 2010 19:16:58 +0200, William Wagner wrote: >> Remote 'g' packet reply is too long: 00000000b07edbbe0000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000c07ddb= be00000000a0070040100000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 00000000000000000000000000000000000000000000000000000000000000000 >> >> 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, > > While I have seen it only on i386<->x86_64 it should be the same problem: > http://sourceware.org/gdb/wiki/FAQ#line-53 > 15. When connecting to gdbserver I get Remote register badly formatted, g= packet > =A0 =A0reply to long etc. > Your gdb 32bit/64bit architecture setting may not match that of gdbserver= . Try > to load the executable by file first. You may also check set/show archite= cture. I couldn't figure out a solution to this error for months until I stumbled onto this conversation: http://old.nabble.com/Switching-architectures-from-a-remote-target-td274585= 11.html I gave up on 64b qemu kernel debugging and went back to 32b. --=20 Jon Smirl jonsmirl@gmail.com