From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17028 invoked by alias); 30 Jul 2004 08:23:08 -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 16946 invoked from network); 30 Jul 2004 08:23:07 -0000 Received: from unknown (HELO epic.mail.pas.earthlink.net) (207.217.120.181) by sourceware.org with SMTP; 30 Jul 2004 08:23:07 -0000 Received: from ip216-26-76-134.dsl.du.teleport.com ([216.26.76.134] helo=spot.canids) by epic.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BqSfS-0003hI-00 for gdb@sources.redhat.com; Fri, 30 Jul 2004 01:23:06 -0700 Received: from spot.canids (localhost [127.0.0.1]) by spot.canids (Postfix) with ESMTP id 39EA7DEB67 for ; Fri, 30 Jul 2004 01:23:06 -0700 (PDT) From: Felix Lee To: gdb@sources.redhat.com Subject: Re: breaking at for-loop test line References: <4108321A.6070306@eecs.berkeley.edu> <20040729152940.GA7326@nevyn.them.org> <20040729185840.A6412132DF@grayscale.canids> <20040730073116.GA4446@ata.cs.hacettepe.edu.tr> In-Reply-To: <20040730073116.GA4446@ata.cs.hacettepe.edu.tr> on Fri, 30 Jul 2004 10:31:18 +0300 from Baurjan Ismagulov Date: Fri, 30 Jul 2004 10:46:00 -0000 Message-Id: <20040730082306.39EA7DEB67@spot.canids> X-SW-Source: 2004-07/txt/msg00368.txt.bz2 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. --