Bad RUN command on GDB

Radzislaw Galler rgaller at et.put.poznan.pl
Mon Jul 16 08:45:22 UTC 2001


----- Original Message -----
From: "Giulix" <giuliano.to at tin.it>
To: <rtems-users at oarcorp.com>
Sent: Friday, July 13, 2001 8:54 PM
Subject: Bad RUN command on GDB


> Hi to everyone,
> sorry for my simple question, but I'm a new rtems-user.
> I have compiled the hello.c example. When I try to run the program on the
> target (hitachi 7045F EVB via serial cable) the GDB answer as:
>
> " Don't know how to run.  Try "help target". "
>
>
> This is the log file:
>
> $ sh-rtems-gdb o-optimize/test.exe
> GNU gdb 4.18
> Copyright 1998 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-cygwin32 --target=sh-rtems"...
> (gdb) set remotebaud 38400
> (gdb) target remote com2
> Remote debugging using com2
> 0x0 in ?? ()
> (gdb) load
> Loading section .text, size 0xd600 lma 0x444000
> Loading section .data, size 0xb10 lma 0x451600
> Loading section .stack, size 0x10 lma 0xfffffec0
> Start address 0x444000 , load size 57632
> Transfer rate: 25614 bits/sec.

Here you should hit 'c' instead of 'r'

> (gdb) r
> The program being debugged has been started already.
> Start it from the beginning? (y or n) y
>
> Starting program:
> /home/SILVERIO_DIQUIGIOVANNI/rtems-4.5.0/examples/prova/o-opti
> mize/test.exe
> Don't know how to run.  Try "help target".
> (gdb)
>
>

Every time when you load program to EVB you should use the following
sequence:

(gdb) file o-optimize/whatever.exe
(gdb) target remote <your serial port here>
(gdb) load
(gdb) b Init //for example - not necessary
(gdb) continue

That should work.

What monitor do you use?

Regards

Radek




More information about the users mailing list