From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9297 invoked by alias); 1 Sep 2006 21:01:32 -0000 Received: (qmail 9287 invoked by uid 22791); 1 Sep 2006 21:01:32 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.palmsource.com (HELO mx2.palmsource.com) (12.7.175.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Sep 2006 21:01:30 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id 6CCF326E50; Fri, 1 Sep 2006 14:01:29 -0700 (PDT) Received: from mx2.palmsource.com ([127.0.0.1]) by localhost (mx2.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22503-01-21; Fri, 1 Sep 2006 14:01:28 -0700 (PDT) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id 5BBD126E31; Fri, 1 Sep 2006 14:01:28 -0700 (PDT) Received: from 192.168.92.59 ([192.168.92.59]) by ussunex01.palmsource.com ([192.168.101.9]) via Exchange Front-End Server owa.palmsource.com ([10.0.20.17]) with Microsoft Exchange Server HTTP-DAV ; Fri, 1 Sep 2006 21:01:28 +0000 Received: from svmsnyderlnx by owa.palmsource.com; 01 Sep 2006 14:01:26 -0700 Subject: Re: gdbserver with X86_64 From: Michael Snyder To: Cai Qian Cc: gdb@sourceware.org In-Reply-To: References: <20060901125144.GA7378@nevyn.them.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 01 Sep 2006 21:01:00 -0000 Message-Id: <1157144486.4466.83.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 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/msg00021.txt.bz2 On Fri, 2006-09-01 at 14:31 +0100, Cai Qian wrote: > 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. "Step" is a source-level command. It can't work without line number symbols. Load up a symbol file before trying to use "step". Of course stepi (step by instruction) will most always work.