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: How to automatically execute some commands when gdb starts


On Fri, Nov 03, 2006 at 03:58:39PM -0600, Peng Yu wrote:
> Hi,
> 
> Every time I start gdb, I'll use command "b main". I don't want to
> type it every time. Is there anyway to set up gdb by default it
> execute that command every time gdb starts?

Please, take a look at the manual.  If this is not clear from the
manual, tell us where in the manual you looked.  Under "Invocation"
-> "Invoking GDB" -> "Startup" is a description of the init file.
Searching for "start" in the index will send you there.

-- 
Daniel Jacobowitz
CodeSourcery


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