Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver with X86_64
@ 2006-09-01 12:44 Cai Qian
  2006-09-01 12:51 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Cai Qian @ 2006-09-01 12:44 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-01 21:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-01 12:44 gdbserver with X86_64 Cai Qian
2006-09-01 12:51 ` Daniel Jacobowitz
2006-09-01 13:31   ` Cai Qian
2006-09-01 14:13     ` Daniel Jacobowitz
2006-09-01 14:27       ` Andrew STUBBS
2006-09-01 21:01     ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox