I'd like to have gdb
immediately run the executable, as if I'd typed "run"
(motivation: I dislike typing "run").
One way is to pipe the command to gdb
like this:
$ echo run | gdb myApp
But the problem with this approach is that you lose interactivity with gdb
,
eg. if a breakpoint triggers or myApp
crashes, gdb
quits.
This method is discussed here.
Looking at the options in --help
, I don't see a way to do this, but perhaps I'm missing something.