This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdbserver with X86_64


Hi,

I tried to use gdbserver in AMD64 machine. I have done the following,

1)  # Compile example C code to generate a 64bit binary.
cat > hello.c<<EOF

#include <stdio.h>

int
main (void)
{
   printf ("Hello World\n");
   return 0;
}

EOF
gcc -g hello.c -o hello

2)  # Run gdbserver in localhost.
gdbserver localhost:22222 hello

3) # Connect to gdbserver locally.
gdb
...
"This GDB was configured as x86_64-linux-gun"
(gdb) target remote localhost:22222

OUTPUT:
on client side, I have gotten,

Remote debugging using localhost:22222
Remote register badly formatted:
T0506:0000000000000000;07:50619fffff7f0000;10:70ea33b3202b0000;
here: 0000000;07:c0e095ffff7f0000;10:700a3d4b192b0000;

on server side, I have gotten,

Remote debugging from host 127.0.0.1
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection
Listening on port 22222

I have also tried on a i386 box. I works fine. Is it a bug or I have
done something wrong?

Qian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]