From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12668 invoked by alias); 24 Sep 2010 07:54:40 -0000 Received: (qmail 12659 invoked by uid 22791); 24 Sep 2010 07:54:39 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.carallon.com (HELO mail.carallon.com) (95.177.28.122) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Sep 2010 07:54:31 +0000 X-MDAV-Processed: mail.carallon.com, Fri, 24 Sep 2010 08:54:26 +0100 Received: from [192.168.1.10] by mail.carallon.com (Cipher TLSv1:-SHA:128) (MDaemon PRO v11.0.3) with ESMTP id md50000631923.msg for ; Fri, 24 Sep 2010 08:54:25 +0100 X-Spam-Processed: mail.carallon.com, Fri, 24 Sep 2010 08:54:25 +0100 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 81.174.245.187 X-Return-Path: will_wagner@carallon.com X-Envelope-From: will_wagner@carallon.com X-MDaemon-Deliver-To: gdb@sourceware.org Message-ID: <4C9C5928.9000401@carallon.com> Date: Fri, 24 Sep 2010 07:54:00 -0000 From: William Wagner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Jan Kratochvil CC: "'gdb@sourceware.org'" Subject: Re: gdbserver 7.1 unable to read registers References: <4C9B8B8A.7030506@carallon.com> <20100924074709.GA6017@host1.dyn.jankratochvil.net> In-Reply-To: <20100924074709.GA6017@host1.dyn.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00127.txt.bz2 On 24/09/2010 08:47, Jan Kratochvil wrote: > On Thu, 23 Sep 2010 19:16:58 +0200, William Wagner wrote: >> 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, > 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 > reply 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 architecture. > Thanks, I had seen that also. I am already passing in the unstripped executable when I call gdb so I think it should have been set already. I try showing the architecture but it just reports arm which is not specific enough to give me a clue what is wrong, I assume it is some mismatch in expected floating point registers. Will -- ------------------------------------------------------------------------ Will Wagner will_wagner@carallon.com Development Manager Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------