Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to execute a file of gdb commands from gdb prompt?
@ 2007-05-19 21:05 ying lcs
  2007-05-19 23:43 ` Joel Brobecker
  0 siblings, 1 reply; 2+ messages in thread
From: ying lcs @ 2007-05-19 21:05 UTC (permalink / raw)
  To: gdb

Hi,

I can exeucte a file of gdb commands to start gdb like this:
gdb ./MyServer -x gdb_script

But how can i start it at a gdb prompt?
$ gdb ./MyServer
(gdb) << how to run gdb_script here??

Thank you.


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

* Re: How to execute a file of gdb commands from gdb prompt?
  2007-05-19 21:05 How to execute a file of gdb commands from gdb prompt? ying lcs
@ 2007-05-19 23:43 ` Joel Brobecker
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Brobecker @ 2007-05-19 23:43 UTC (permalink / raw)
  To: ying lcs; +Cc: gdb

> But how can i start it at a gdb prompt?
> $ gdb ./MyServer
> (gdb) << how to run gdb_script here??

Use the "source" luke, the "source" will be with you, always.
http://www.sourceware.org/gdb/current/onlinedocs/gdb_21.html#IDX1185

-- 
Joel


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

end of thread, other threads:[~2007-05-19 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-19 21:05 How to execute a file of gdb commands from gdb prompt? ying lcs
2007-05-19 23:43 ` Joel Brobecker

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