This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to execute a file of gdb commands from gdb prompt?
- From: Joel Brobecker <brobecker at adacore dot com>
- To: ying lcs <yinglcs at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sat, 19 May 2007 16:44:08 -0700
- Subject: Re: How to execute a file of gdb commands from gdb prompt?
- References: <568e62a40705191404s144e7ccduc0ead413f506b123@mail.gmail.com>
> 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