Doubts with GDB and GDBSERVER
John Martin
jmartin@larraioz.com
Mon Dec 10 13:46:00 GMT 2012
Hello Luis,
Yes, it works.
But I am interesting in load symbols from remote file, then it is not a
solution for me.
Thank you very much.
Best regards.
El 10/12/12 14:38, Luis Machado escribió:
> On 12/10/2012 10:57 AM, John Martin wrote:
>>
>> Hello,
>>
>> 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
>> later<http://gnu.org/licenses/gpl.html>
>> 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:
>> <http://www.gnu.org/software/gdb/bugs/>.
>> (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.
>> (gdb)
>>
>>
>> Is it possible to load symbol table App from target remote?
>>
>> Best regards.
>>
>>
>
> 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?
>
> Luis
>
More information about the Gdb
mailing list