From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7642 invoked by alias); 29 Jul 2004 18:58:42 -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 7628 invoked from network); 29 Jul 2004 18:58:41 -0000 Received: from unknown (HELO atlantic.mail.pas.earthlink.net) (207.217.120.179) by sourceware.org with SMTP; 29 Jul 2004 18:58:41 -0000 Received: from ip216-26-76-134.dsl.du.teleport.com ([216.26.76.134] helo=grayscale.canids) by atlantic.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BqG6z-0002MD-00 for gdb@sources.redhat.com; Thu, 29 Jul 2004 11:58:41 -0700 Received: from grayscale.canids (localhost [127.0.0.1]) by grayscale.canids (Postfix) with ESMTP id A6412132DF for ; Thu, 29 Jul 2004 11:58:40 -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> In-Reply-To: <20040729152940.GA7326@nevyn.them.org> on Thu, 29 Jul 2004 11:29:40 EDT from Daniel Jacobowitz Date: Thu, 29 Jul 2004 22:21:00 -0000 Message-Id: <20040729185840.A6412132DF@grayscale.canids> X-SW-Source: 2004-07/txt/msg00362.txt.bz2 Daniel Jacobowitz : > I've been thinking for a while about a better interface for this, but I > haven't come up with one yet. > > In the mean time, you can take a look at the disassembly, figure out > where the condition is, and set a breakpoint there using break *. > GDB could also make it much easier to figure out where the condition is > than it does now... how about just that. something like "asm 30" that will print all the machine instructions that correspond to line 30 of the source. in a gui, this would be something like, selecting a source line would highlight the corresponding lines in a disassembly window. or in a mixed source/asm window, an option to choose whether it's ordered by source or by asm. --