GDB support for 'Run to Line'

Jan Kratochvil jan.kratochvil@redhat.com
Wed Apr 15 21:22:00 GMT 2009


On Wed, 15 Apr 2009 21:48:01 +0200, Marc Khouzam wrote:
> GDB's 'advance' is better, but it stops if the current frame exists.
> 
> Anything else that I could use to 'run to line' anywhere in the program?

If it was a question and not a feature request then:

cat >>~/.gdbinit <<EOH
define runto
	tbreak $arg0
	cont
end
EOH


Regards,
Jan



More information about the Gdb mailing list