From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7754 invoked by alias); 27 Mar 2008 08:28:14 -0000 Received: (qmail 7741 invoked by uid 22791); 27 Mar 2008 08:28:14 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.silicomp.fr (HELO smtp.silicomp.fr) (194.51.78.40) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Mar 2008 08:27:56 +0000 Received: from PC1475 ([172.16.6.128]) by smtp.silicomp.fr (8.13.8/8.12.10) with ESMTP id m2R8Rp2U005231 for ; Thu, 27 Mar 2008 09:27:51 +0100 Message-Id: <200803270827.m2R8Rp2U005231@smtp.silicomp.fr> From: =?iso-8859-1?Q?J=E9r=E9my_Alles?= To: "'eCos Discussion'" Date: Thu, 27 Mar 2008 08:45:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (smtp.silicomp.fr [194.51.78.40]); Thu, 27 Mar 2008 09:27:51 +0100 (CET) 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: [ECOS] Configuring an eCos application to debug it using GDB X-SW-Source: 2008-03/txt/msg00168.txt.bz2 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). My board has IP 192.168.1.20, and I can successfully connect to it from arm-elf-gdb. 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. jalles@jalles1475:~/local_repository/drivers/led$ arm-elf-gdb GNU gdb 5.3 (eCosCentric) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf". (gdb) target remote 192.168.1.20:9000 Remote debugging using 192.168.1.20:9000 0x10027580 in ?? () (gdb) load main.elf Loading section .rom_vectors, size 0x40 lma 0x20040000 Loading section .text, size 0x6948 lma 0x20040040 Loading section .rodata, size 0x284 lma 0x20046988 Loading section .data, size 0x6cc lma 0x20046c0c Start address 0x20040040, load size 29400 Transfer rate: 235200 bits/sec, 294 bytes/write. (gdb) c Continuing. Moreover, if I want to use a break point, the load command is not enough: (gdb) load main.elf Loading section .rom_vectors, size 0x40 lma 0x20040000 Loading section .text, size 0x7f07c lma 0x20040040 Loading section .rodata, size 0x4f5d4 lma 0x200bf0bc Loading section .data, size 0x5264 lma 0x2010e690 Start address 0x20040040, load size 866548 Transfer rate: 407787 bits/sec, 299 bytes/write. (gdb) b main No symbol table is loaded. Use the "file" command. Whereas I build my application using the -g option... Any idea ? Regards, Jeremy -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss