Re: [PATCH] Make STARTUP_WITH_SHELL a runtime toggle -- add new "set/show startup-with-shell" option.

Gary Benson
2013-10-23T13:38:17Z

Pedro Alves wrote:
> Occasionaly we hear about people having problems with GDB not being
> able to start programs (with "run"/"start"). GDB spawns a shell to
> start the program, and most often, it'll be the case that the problem
> is actually with the user's shell setup.
>
> GDB has code to disable the use of the shell to start programs.
> That's the STARTUP_WITH_SHELL macro that native targets could set to 0
> in their nm.h file (though no target actually uses it nowadays).
>
> This patch makes that setting a run-time knob instead. This will be
> useful to quickly diagnose such shell issues, and might also come in
> handy at other times (such as when debugging the shell itself, if you
> don't have a different shell handy).
>
> Comments? Are the docs OK?

It's a good idea. And the docs seem fine to me.

Cheers,
Gary

--