How to automatically execute some commands when gdb starts

Peng Yu
2006-11-03T21:58:44Z

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?

Thanks,
Peng