From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8531 invoked by alias); 20 Nov 2002 14:14: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 8521 invoked from network); 20 Nov 2002 14:14:39 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 20 Nov 2002 14:14:39 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18EXV1-00057B-00; Wed, 20 Nov 2002 10:14:47 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18EVcY-0001C3-00; Wed, 20 Nov 2002 09:14:26 -0500 Date: Wed, 20 Nov 2002 06:14:00 -0000 From: Daniel Jacobowitz To: Jean-Eric Cuendet Cc: gdb@sources.redhat.com Subject: Re: Setting Prog pointer back in the prog Message-ID: <20021120141426.GB4546@nevyn.them.org> Mail-Followup-To: Jean-Eric Cuendet , gdb@sources.redhat.com References: <3DDB6CF2.4090108@linkvest.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DDB6CF2.4090108@linkvest.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00248.txt.bz2 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. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer