This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Setting Prog pointer back in the prog
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jean-Eric Cuendet <jean-eric dot cuendet at linkvest dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 20 Nov 2002 09:14:26 -0500
- Subject: Re: Setting Prog pointer back in the prog
- References: <3DDB6CF2.4090108@linkvest.com>
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 = <address>". You have to use PC values, not line
numbers.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer