From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1369 invoked by alias); 1 Sep 2006 12:51:52 -0000 Received: (qmail 1361 invoked by uid 22791); 1 Sep 2006 12:51:52 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 01 Sep 2006 12:51:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GJ8Uq-0001vQ-Q3; Fri, 01 Sep 2006 08:51:44 -0400 Date: Fri, 01 Sep 2006 12:51:00 -0000 From: Daniel Jacobowitz To: Cai Qian Cc: gdb@sourceware.org Subject: Re: gdbserver with X86_64 Message-ID: <20060901125144.GA7378@nevyn.them.org> Mail-Followup-To: Cai Qian , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes 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/msg00010.txt.bz2 On Fri, Sep 01, 2006 at 01:44:06PM +0100, Cai Qian wrote: > 3) # Connect to gdbserver locally. > gdb > ... > "This GDB was configured as x86_64-linux-gun" > (gdb) target remote localhost:22222 You need to give GDB a binary file before you connect. Otherwise, it is defaulting to 32-bit registers. You should always do this, on every platform. -- Daniel Jacobowitz CodeSourcery