This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
gdb on redboot (partial success)
- From: Satish Kumar <satish at bvt dot sc dot sanyo dot co dot jp>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 06 Aug 2003 14:58:14 +0900
- Subject: [ECOS] gdb on redboot (partial success)
Hi,
finally i came out of loop of solving my problem with the
arm-elf-gdb..well i m able to connect to my target and
download my code now..and when i run continue the gdb seems
to be hanging somewhere..no output seen..
my hello.c is as follows:
#include <stdio.h>
#include <stdlib.h>
#include <cyg/kernel/kapi.h>
int main(void)
{
printf("Hello World\n");
return 1;
}
and the output of arm-elf-gdb is as follows:
$ arm-elf-gdb -nw hello
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-cygwin --target=arm-elf"...
(gdb) set remotebaud 115200
(gdb) target remote com1
Remote debugging using com1
0x30002f9c in ?? ()
(gdb) load
Loading section .rom_vectors, size 0x40 lma 0x40000
Loading section .text, size 0xfac0 lma 0x40040
Loading section .rodata, size 0x29c lma 0x4fb00
Loading section .data, size 0x3e4 lma 0x4fd9c
Start address 0x40040, load size 65920
Transfer rate: 75337 bits/sec, 302 bytes/write.
(gdb) continue
Continuing.
well, i see no "Hello World" string output. can somebody
explain were i m wrong..!!
satish
--
Satish Kumar <satish@bvt.sc.sanyo.co.jp>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss