Bonjour à tous.
Sur PC_hote, j'ai un petit code C++ (1fichier, un petit code test) que j'ai compilé comme ca:
c++ -ggdb -static testing.cpp -o testing.bin |
depuis ce PC_hote, quand j'utilises gdb, tout est au poil.
Je lance alors le serveur sur PC_hote:
gdbserver IP_PC_client:1984 testing.bin |
et sur le PC_client:
[ben@localhost Dev]$ gdb
GNU gdb Red Hat Linux (6.6-16.fc7rh)
Copyright (C) 2006 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 "x86_64-redhat-linux-gnu".
(gdb) target remote 192.168.1.100:1984 testing.bin
Remote debugging using 192.168.1.100:1984 testing.bin
0x08048110 in ?? ()
(gdb) n
Cannot find bounds of current function
(gdb) c
Continuing.
Program exited normally.
(gdb) |
et du coté PC_hote: le programme tourne dans la console correctement.
Comment puis-je voir mes lignes "normalement"?
J'ai essayé en copiant le fichier testing.cpp et testing.bin du PC_hote sur mon PC_client et en tappant avant le "target remote":
(gdb) file testing.bin
Reading symbols from /home/ben/Dev/testing.bin...done.
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) target remote 192.168.1.100:1984 testing.bin
Remote debugging using 192.168.1.100:1984 testing.bin
0x08048110 in _start ()
(gdb) n
Single stepping until exit from function _start,
which has no line number information.
0x080a8060 in __libc_start_main ()
(gdb) n
Single stepping until exit from function __libc_start_main,
which has no line number information.
n
0x080d6530 in _dl_aux_init ()
(gdb) n
Single stepping until exit from function _dl_aux_init,
which has no line number information.
n0x080a80a7 in __libc_start_main ()
(gdb) n
Single stepping until exit from function __libc_start_main,
which has no line number information.
Program exited normally.
|
Comment ce fais-ce?
PC_hote est un x86 et PC_client est un x86-64. Ca vient là?Quelqun a une idée?
Merci
---------------
Putain j'ai rêvé de toi cette nuit !! Alors que jte connais même pas !!-LaL0utre | Ben_be est un roxxeur d'ours d'envergure mondiale-Daaadou |Entre un dessert et Ben_be je choisis Ben_be-Ramasse-miette