Re: How to automatically execute some commands when gdb starts

Daniel Jacobowitz
2006-11-03T22:09:17Z

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