From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32717 invoked by alias); 20 Nov 2002 17:21:41 -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 32710 invoked from network); 20 Nov 2002 17:21:40 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 20 Nov 2002 17:21:40 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 137973E39; Wed, 20 Nov 2002 12:21:36 -0500 (EST) Message-ID: <3DDBC49F.2070005@redhat.com> Date: Wed, 20 Nov 2002 09:21:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Jean-Eric Cuendet , gdb@sources.redhat.com Subject: Re: Setting Prog pointer back in the prog References: <3DDB6CF2.4090108@linkvest.com> <20021120141426.GB4546@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00267.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. 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. Andrew