From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29937 invoked by alias); 22 Feb 2007 11:49:01 -0000 Received: (qmail 29925 invoked by uid 22791); 22 Feb 2007 11:49:00 -0000 X-Spam-Check-By: sourceware.org Received: from web26715.mail.ukl.yahoo.com (HELO web26715.mail.ukl.yahoo.com) (217.146.177.72) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 22 Feb 2007 11:48:55 +0000 Received: (qmail 38817 invoked by uid 60001); 22 Feb 2007 11:48:53 -0000 X-YMail-OSG: MFyIqy8VM1kDCoSrG5znBVEP9RNZbJtzpRzh0VhaIwIYZjOK9MwSGrRK89ymodv1wqk5J9uAKabRh8MgYdDEejhGZWDOBR1sGaVt1wOmnFoV.i7efV5K_wTx2I4HOUF8V15KAtj96VlE Received: from [149.117.9.28] by web26715.mail.ukl.yahoo.com via HTTP; Thu, 22 Feb 2007 11:48:53 GMT X-Mailer: YahooMailRC/368.8 YahooMailWebService/0.6.132.8 Date: Thu, 22 Feb 2007 12:56:00 -0000 From: Colin MacDonald Subject: Unable to step over functions in arm-elf binary To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <457270.37713.qm@web26715.mail.ukl.yahoo.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00231.txt.bz2 We have .elf targets for Arm processors and we can debug these via a remote= connection (using the remote serial protocol) with Insight / GDB. Everyth= ing works fine except for one thing: I can't step over a function. If I tr= y to step over a function I invariably step into it instead. Using the 'n'= command from GDB command line generates a sequence remote serial commands = like this: 1. A breakpoint is set with $Z, but it's a breakpoint that I already have i= n the code 2. A series of $s and $p commands, step then check register, are executed, = presumably hunting for the desired program counter value 3. Once the PC reaches the appropriate number I see a $m, probably to get a= local variable value or something of the sort. 4. The breakpoint set in 1 is cleared with $z. I was expecting that a breakpoint would be set temporarily at the next line= of code then a $c (continue) would be issued. Is this a known problem? Does it only affect Arm targets, or is it only a = problem using the remote serial protocol? Any clues gratefully appreciated. Colin MacDonald =09=09 ____________________________________________________=20 =20 Yahoo! Photos is now offering a quality print service from just 7p a photo.= http://uk.photos.yahoo.com