From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8268 invoked by alias); 16 Apr 2009 00:54:44 -0000 Received: (qmail 8256 invoked by uid 22791); 16 Apr 2009 00:54:43 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Apr 2009 00:54:37 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id n3G13fDi018016; Wed, 15 Apr 2009 20:03:42 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 15 Apr 2009 19:53:39 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: GDB support for 'Run to Line' Date: Thu, 16 Apr 2009 07:00:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA071521C9@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA0745EBDA@ecamlmw720.eamcs.ericsson.se> <20090415195733.GA24282@caradoc.them.org> From: "Marc Khouzam" To: "Daniel Jacobowitz" Cc: 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: 2009-04/txt/msg00132.txt.bz2 > > Hi, > > > > I'm trying to figure out if GDB has support for the 'Run to Line' featu= re > > of Eclipse, where the user selects a line and the inferior resumes until > > that line. > > > > GDB's 'until' does not seem to be the right choice since it only stops > > if the location is in the same frame. > > > > GDB's 'advance' is better, but it stops if the current frame exists. >=20 > Isn't this just tbreak + continue? Problem is that if another breakpoint is hit first, this temporary one will remain and will hit later, unexpectedly to the user. I would have to = remove that temp bp myself in that case. =20 Of course, one way to do run to line is to disable all other bps until that= line is reached. This is a preference in Eclipse, so I have to support both ways. Now, with non-stop, I don't think disabling all bps (even for a short while= ) is a good=20 idea anymore. I would need to disable all bps for a particular thread only= . I don't think GDB allows me to do this. This was doing to be a future question of mine o= n the list :-) =20 But if tbreak + continue + cleanup is my best option, that is what I'll loo= k into. =20 Thanks =20 Marc =20 =20