This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB error messages
- To: Gerwyn Davies <gerwynd at tommoll dot freeserve dot co dot uk>
- Subject: Re: GDB error messages
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Fri, 04 Aug 2000 13:38:49 +0000
- CC: GDB <gdb at sourceware dot cygnus dot com>
- Organization: Red Hat Canada Ltd. - Toronto
- References: <002301bffda8$4e0d70e0$ec08883e@gtd-s-machine>
Gerwyn Davies wrote:
>
> "You can't do that when your target is `exec' " in response to a load
> command.
>
This one is easy: the load command loads an executable file in the memory of
a remote target, connected via serial port or ethernet to the host where
you are running gdb.
To debug programs on boards and things of a sort one needs a cross debugger.
You need gdb built for your target and the target must have a gdb stub so it
can talk to gdb.
I don't remember when the other one is issued but, judging by the second one,
it seems that you are not using gdb properly. I would recommend a second pass
through the manual. If you still have problems after that let us know.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299