This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Make STARTUP_WITH_SHELL a runtime toggle -- add new "set/show startup-with-shell" option.
- From: Gary Benson <gbenson at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 23 Oct 2013 14:38:07 +0100
- Subject: Re: [PATCH] Make STARTUP_WITH_SHELL a runtime toggle -- add new "set/show startup-with-shell" option.
- Authentication-results: sourceware.org; auth=none
- References: <1382532024-28890-1-git-send-email-palves at redhat dot com>
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
--
http://gbenson.net/