From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3941 invoked by alias); 20 Nov 2002 18:36:50 -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 3920 invoked from network); 20 Nov 2002 18:36:49 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 20 Nov 2002 18:36:49 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18Ebaq-0005YA-00; Wed, 20 Nov 2002 14:37:04 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18EZiO-0006I3-00; Wed, 20 Nov 2002 13:36:44 -0500 Date: Wed, 20 Nov 2002 10:36:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Jean-Eric Cuendet , gdb@sources.redhat.com Subject: Re: Setting Prog pointer back in the prog Message-ID: <20021120183644.GB24089@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Jean-Eric Cuendet , gdb@sources.redhat.com References: <3DDB6CF2.4090108@linkvest.com> <20021120141426.GB4546@nevyn.them.org> <3DDBC49F.2070005@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DDBC49F.2070005@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00276.txt.bz2 On Wed, Nov 20, 2002 at 12:21:35PM -0500, Andrew Cagney wrote: > >On Wed, Nov 20, 2002 at 12:07:30PM +0100, Jean-Eric Cuendet wrote: > > > >>Hi, > >>With MsDev debugger, you can set the program pointer back in the code > >>(Set Next Statement). > >>Is it also possible with GDB? > >>If yes, how? Why doesn't Eclipse/Insight/DDD/... don't provide that? > >>If no, why? Will it be implemented in a next version? Or is it a MsDev > >>bug? :-) > > > > > >Try: "set $pc =
". You have to use PC values, not line > >numbers. > > FYI, > > (gdb) help jump > Continue program being debugged at specified line or address. > Give as argument either LINENUM or *ADDR, where ADDR is an expression > for an address to start at. Learn something new every day.... thanks Andrew! -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer