From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7526 invoked by alias); 2 Feb 2006 13:52:36 -0000 Received: (qmail 7517 invoked by uid 22791); 2 Feb 2006 13:52:35 -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; Thu, 02 Feb 2006 13:52:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F4esx-0008Sa-Kh; Thu, 02 Feb 2006 08:52:31 -0500 Date: Thu, 02 Feb 2006 13:52:00 -0000 From: Daniel Jacobowitz To: Paul Blacquiere Cc: "gdb@sourceware.org" Subject: Re: Howto single step from beginning Message-ID: <20060202135230.GA32388@nevyn.them.org> Mail-Followup-To: Paul Blacquiere , "gdb@sourceware.org" References: <20060202140831.wco48wcskkccsokk@webmail.slingshot.co.nz> <20060202012556.GA19090@nevyn.them.org> <20060202155252.k84sosswgkwkwsg4@webmail.slingshot.co.nz> <20060202025704.GA21125@nevyn.them.org> <20060202174500.8gcgws4wk04kwgs0@webmail.slingshot.co.nz> <20060202050657.GA22487@nevyn.them.org> <20060202182905.ac0ckos04gk00wso@webmail.slingshot.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060202182905.ac0ckos04gk00wso@webmail.slingshot.co.nz> User-Agent: Mutt/1.5.8i 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-02/txt/msg00012.txt.bz2 On Thu, Feb 02, 2006 at 06:29:05PM +1300, Paul Blacquiere wrote: > > > >Remind me again what version of GDB you're using? And it is configured > >for arm-linux, right? Or maybe you're debugging a uClibc static binary > >that doesn't have the correct ABI markings? > > GDB Ver 6.3 build under buildroot using uCLibc That's why. Some versions of uClibc do not include a Linux ABI marker; see what "objdump -s -j .note.ABI-tag" on the static binary you are debugging shows. I think this has been fixed. > >That's an arm-elf breakpoint. It doesn't work on arm-linux systems. > > > >Does "show osabi" reveal anything? > > > ---- > (gdb) show osabi > The current OS ABI is "auto" (currently "ARM APCS"). > The default OS ABI is "GNU/Linux". > (gdb) > ---- Also GDB 6.3 would erroneously override the default ABI, as you see here. Try 6.4 instead. > I am assuming that the ABI markings are involved in the definition of > the break > point instruction, as I can not find a corresponding match to the gdb trace > instruction in the gdb source. Look for ARM_BE_BREAKPOINT in arm-tdep.c. -- Daniel Jacobowitz CodeSourcery