From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15967 invoked by alias); 27 Mar 2008 08:45:46 -0000 Received: (qmail 15957 invoked by uid 22791); 27 Mar 2008 08:45:45 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Mar 2008 08:45:27 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Jenjf-0002Cy-00; Thu, 27 Mar 2008 09:45:23 +0100 Date: Thu, 27 Mar 2008 09:02:00 -0000 From: Andrew Lunn To: J?r?my Alles Cc: 'eCos Discussion' Message-ID: <20080327084523.GL16575@lunn.ch> Mail-Followup-To: J?r?my Alles , 'eCos Discussion' References: <200803270827.m2R8Rp2U005231@smtp.silicomp.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803270827.m2R8Rp2U005231@smtp.silicomp.fr> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Configuring an eCos application to debug it using GDB X-SW-Source: 2008-03/txt/msg00169.txt.bz2 On Thu, Mar 27, 2008 at 09:27:50AM +0100, J?r?my Alles wrote: > Hi, > > I'm trying to configure properly my eCos application in order to > debug it using GDB (over Ethernet). I'm using an AT91 based development kit > with Redboot already flashed on it (by someone else in my company). Do you have the configuration that was used to build this redboot image? > The problem is I think that I'm missing something in my > configuration (ecos.ecc), as when my application starts, it returns 54321 > and not something like $O3534313231#56+. That is why I think i'm doing > something wrong. This is to do with gdb mangling. Normally it should work out if it needs to mangle nor not, depending on if gdb is connected or not. Take a look at CYGSEM_HAL_DIAG_MANGLER. What i don't know is if redboot or the application does the mangling. I think it is redboot, but maybe Gary can confirm this. Note, this only applies to output from diag_printf. If you open the serial port, /dev/ser0, and write to that, no mangling is performed. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss