This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Remote Debugging
- To: Yu Xuanwei <yxw at chinacluster dot com>
- Subject: Re: Remote Debugging
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Fri, 01 Dec 2000 14:40:33 -0500
- CC: gdb at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <3A274495.FD07A793@chinacluster.com>
Yu Xuanwei wrote:
>
> Hi, Folks:
>
> I am a rookie. I want to know something about remote debugging:
>
> 1. On target: The gdbserver manipulates target application, which is
> stripped.
>
> 2. On host: GDB run "target remote ..." to customize the target.
>
> Then where is the symbol file for target application? Should I native
> compile the target application on host? Or ...?
>
Nope. You cross compile your executable with "-g". Create a stripped copy
(not necessary if you don't care about file sizes in the target) and copy
the stripped version to the target. Load it with gdbserver.
On the host side: gdb <your-complete-executable-with-debug-info>
and proceed as you mentioned.
But please, before you try to go any further, print a copy of the
"Debugging with GDB" manual. It is in the doc directory (you can make it in
various flavors - ps among them). It is also available as an info topic
if GDB is correctly installed on your system.
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9