This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Configuring an eCos application to debug it using GDB


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]