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]

gdb problem


Hello,

Aim:
To get the gdb debugger working 

Target environment:
Platform : Motorola PQ2FADS-ZU Board
Processor: MPC 8280 (predecessor of MPC 8260) Clock frequency : 100MHz

I have built a hello world eCos RAM application (hello.elf,hello.srec from
hello.c). If I load the hello.srec from redboot monitor via tftp and execute
it with "go" command. 

The output on the console is

Init device '/dev/ttydiag'
Init tty channel: 38170
Init device '/dev/haldiag'
HAL/diag SERIAL init
Hello, world!


I tried to load and run the image(hello.elf) over gdb(via network) with the
following commands

$ powerpc-eabi-gdb -nw hello.elf
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=powerpc-eabi"...
(gdb) target remote 192.168.20.238:9000
Remote debugging using 192.168.20.238:9000
0xfff16534 in ?? ()
(gdb) load
Loading section .text, size 0x170e0 lma 0x20000
Loading section .rodata, size 0xb30 lma 0x370e0
Loading section .data, size 0x754 lma 0x37c10
Start address 0x20000, load size 99172
Transfer rate: 72125 bits/sec, 508 bytes/write.
(gdb) continue
Continuing.


And I don't see the output on the console.I wonder why the same RAM
application which runs via redboot load doesn't work with gdb.

I hope it isn't problem with eCos configuration.For reference the "ecc" file
is available at

http://www.yousendit.com/transfer.php?action=download&ufid=DCB915D05E9624A8

I will be obliged if anyone can give me a hint or reference/pointer how to
make gdb work with my application.

Thanks a lot,
Ram


-- 
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]