This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
question about using gdb and reboot loading an application
- From: Ecos Temp <ecos1 at sorensontech dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 10 Apr 2002 11:49:59 -0600
- Subject: [ECOS] question about using gdb and reboot loading an application
All,
I'm a little confused on loading and debugging a program using GDB.
I do
the following:
Remote debugging using COM1
0xe454 in ?? ()
(gdb) load
Loading section .rom_vectors, size 0x40 lma 0x40000
Loading section .text, size 0x2788c lma 0x40040
Loading section .rodata, size 0xbda lma 0x678cc
Loading section .data, size 0xab0 lma 0x684a8
Start address 0x40040 , load size 167766
Transfer rate: 27390 bits/sec, 306 bytes/write.
(gdb)
Ok once the image is loaded how do you start it executing? I tried
using c
for continue and it never outputs? Also I inserted break points and
they
never triggered. so what could I be doing wrong?
Also, I have used redboot, to load an image into memory for example:
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 07:52:31, Apr 10 2002
Platform: SVX (ARM 7TDMI)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x00800000, 0x00030768-0x007ed000 available
FLASH: 0x11000000 - 0x11200000, 39 blocks of 0x00010000 bytes each.
RedBoot> load -v -h 63.226.84.79 hello.srec
Entry point: 0x00040040, address range: 0x00040000-0x00068f58
RedBoot> go 0x40040
and it just hung. any clues?
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss