From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23904 invoked by alias); 3 Aug 2004 18:53:13 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23897 invoked from network); 3 Aug 2004 18:53:12 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 3 Aug 2004 18:53:12 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1Bs4Ny-0006fo-Cl for ; Tue, 03 Aug 2004 14:51:42 -0400 Date: Tue, 03 Aug 2004 18:53:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: breaking at for-loop test line Message-ID: <20040803185141.GA25595@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <4108321A.6070306@eecs.berkeley.edu> <20040729152940.GA7326@nevyn.them.org> <20040729185840.A6412132DF@grayscale.canids> <20040730073116.GA4446@ata.cs.hacettepe.edu.tr> <20040730082306.39EA7DEB67@spot.canids> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040730082306.39EA7DEB67@spot.canids> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-08/txt/msg00009.txt.bz2 On Fri, Jul 30, 2004 at 01:23:05AM -0700, Felix Lee wrote: > Baurjan Ismagulov : > > On Thu, Jul 29, 2004 at 11:58:40AM -0700, Felix Lee wrote: > > > how about just that. something like "asm 30" that will print all > > > the machine instructions that correspond to line 30 of the > > > source. > > > > Do you mean something like the following? > > > > (gdb) info line 223 > > Line 223 of "main.c" starts at address 0x804e384 > > and ends at 0x804e3a0 . > > (gdb) disas 0x804e384 0x804e3a0 > > yeah, but it would be nice to take into account code optimization > and exclude instructions in that range that aren't relevant to > line 223. but I don't know if there's enough debugging > information to do that. There is. We may want to "fix" the output of info line. What it is right now is the first group of contiguous instructions in the line; later groups are ignored. -- Daniel Jacobowitz