From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31433 invoked by alias); 1 Sep 2006 12:44:13 -0000 Received: (qmail 31423 invoked by uid 22791); 1 Sep 2006 12:44:12 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Sep 2006 12:44:11 +0000 Received: by ug-out-1314.google.com with SMTP id u2so979954uge for ; Fri, 01 Sep 2006 05:44:06 -0700 (PDT) Received: by 10.67.93.6 with SMTP id v6mr1161774ugl; Fri, 01 Sep 2006 05:44:06 -0700 (PDT) Received: by 10.67.101.17 with HTTP; Fri, 1 Sep 2006 05:44:06 -0700 (PDT) Message-ID: Date: Fri, 01 Sep 2006 12:44:00 -0000 From: "Cai Qian" To: gdb@sourceware.org Subject: gdbserver with X86_64 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00009.txt.bz2 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< 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