Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* automatic commands...?
@ 2003-02-19 21:37 christopher j bottaro
  2003-02-19 22:07 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: christopher j bottaro @ 2003-02-19 21:37 UTC (permalink / raw)
  To: gdb

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?

thanks,
-- christopher


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: automatic commands...?
  2003-02-19 21:37 automatic commands...? christopher j bottaro
@ 2003-02-19 22:07 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-02-19 22:07 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-19 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-19 21:37 automatic commands...? christopher j bottaro
2003-02-19 22:07 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox