From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12395 invoked by alias); 27 Sep 2010 14:44:58 -0000 Received: (qmail 12385 invoked by uid 22791); 27 Sep 2010 14:44:57 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Sep 2010 14:44:53 +0000 Received: (qmail 3889 invoked from network); 27 Sep 2010 14:44:51 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Sep 2010 14:44:51 -0000 Date: Mon, 27 Sep 2010 14:44:00 -0000 From: Daniel Jacobowitz To: Steffen Dettmer Cc: gdb@sourceware.org Subject: Re: gdbserver 7.1 unable to read registers Message-ID: <20100927144444.GA29773@caradoc.them.org> Mail-Followup-To: Steffen Dettmer , gdb@sourceware.org References: <201009241405.o8OE5BMx026432@d12av02.megacenter.de.ibm.com> <201009241539.35561.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00151.txt.bz2 On Mon, Sep 27, 2010 at 12:25:38PM +0200, Steffen Dettmer wrote: > I do not see an XML warning message when gdb tries to connect, > but I have a problem with "call" in remote debugging > (arm-elf-nonlinux-gdb-7.20): > > (gdb) p strlen("") > Could not write register "cpsr"; remote failure reply 'E00' > An error occurred while in a function called from GDB. > Evaluation of the expression containing the function > (malloc) will be abandoned. > When the function is done executing, GDB will silently stop. > > Could this be caused by missing expat support, or would I > definitely see a XML warning message in case? No, this will not be related. GDB always warns if it needs XML but doesn't have expat. This looks like a problem with your remote stub, specifically, what it says on the cover: failed to write to cpsr. -- Daniel Jacobowitz CodeSourcery