Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Cai Qian" <caiqian@gmail.com>
To: gdb@sourceware.org
Subject: gdbserver with X86_64
Date: Fri, 01 Sep 2006 12:44:00 -0000	[thread overview]
Message-ID: <a96350810609010544u62a34203j30f24d70a143dddf@mail.gmail.com> (raw)

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


             reply	other threads:[~2006-09-01 12:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-01 12:44 Cai Qian [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a96350810609010544u62a34203j30f24d70a143dddf@mail.gmail.com \
    --to=caiqian@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox