This is the mail archive of the gdb@sources.redhat.com 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: automatic commands...?


On Wed, Feb 19, 2003 at 03:40:23PM -0600, christopher j bottaro wrote:
> hello,
> i want gdb to automatically execute some commands on startup.  for instance,
> i want to run the command 'gdb myprog 12345' and immediately upon attaching, i 
> want it to execute 'set myvar=blah; continue'.  is this possible and if so, 
> how?

Put it in a .gdbinit in the current directory, or use -x.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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