This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]