This is the mail archive of the
mailing list for the GDB project.
Re: Doubts with GDB and GDBSERVER
- From: Luis Machado <lgustavo at codesourcery dot com>
- To: John Martin <jmartin at larraioz dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 10 Dec 2012 11:38:21 -0200
- Subject: Re: Doubts with GDB and GDBSERVER
- References: <50C5D99A.firstname.lastname@example.org> <50C5DC2E.email@example.com>
- Reply-to: lgustavo at codesourcery dot com
On 12/10/2012 10:57 AM, John Martin wrote:
I have tried to use gdb and gdbserver to debug App but I have a doubts:
In server side:
gdbserver :12345 ./App
In client side:
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-geode-linux-gnu".
For bug reporting instructions, please see:
(gdb) target remote 192.168.1.150:12345
Remote debugging using 192.168.1.150:12345
warning: Could not load vsyscall page because no executable was specified
try using the "file" command first.
0xb7fe77e0 in ?? ()
(gdb) file App
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
App: No existe el fichero o el directorio.
Is it possible to load symbol table App from target remote?
You need a copy of the binary in the host as well... Try loading the
symbol file *before* connecting to the remote target too.
Does that work?