From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21949 invoked by alias); 1 Sep 2006 13:31:56 -0000 Received: (qmail 21911 invoked by uid 22791); 1 Sep 2006 13:31:55 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.173) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Sep 2006 13:31:53 +0000 Received: by ug-out-1314.google.com with SMTP id u2so994491uge for ; Fri, 01 Sep 2006 06:31:50 -0700 (PDT) Received: by 10.66.221.19 with SMTP id t19mr1197438ugg; Fri, 01 Sep 2006 06:31:50 -0700 (PDT) Received: by 10.67.101.17 with HTTP; Fri, 1 Sep 2006 06:31:50 -0700 (PDT) Message-ID: Date: Fri, 01 Sep 2006 13:31:00 -0000 From: "Cai Qian" To: "Cai Qian" , gdb@sourceware.org Subject: Re: gdbserver with X86_64 In-Reply-To: <20060901125144.GA7378@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060901125144.GA7378@nevyn.them.org> 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/msg00011.txt.bz2 Hi, On 9/1/06, Daniel Jacobowitz wrote: > 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. > Oh, I see. Just realised set architecture i386:x86-64 also work for me. However, it seems there is a problem with single step, (gdb) s Cannot find bounds of current function "si" do work though. > -- > Daniel Jacobowitz > CodeSourcery >