This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB support for 'Run to Line'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]