This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Make sure GDB uses a valid shell when starting the inferior and to perform the "shell" command
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: <Paul_Koning at dell dot com>
- Cc: <eliz at gnu dot org>, <simon dot marchi at ericsson dot com>, <gdb-patches at sourceware dot org>
- Date: Fri, 24 Jul 2015 16:35:19 -0400
- Subject: Re: [PATCH] Make sure GDB uses a valid shell when starting the inferior and to perform the "shell" command
- Authentication-results: sourceware.org; auth=none
- References: <1437761993-18758-1-git-send-email-sergiodj at redhat dot com> <55B2850D dot 6030306 at ericsson dot com> <87k2tp5q3g dot fsf at redhat dot com> <838ua52wmp dot fsf at gnu dot org> <87fv4d5p8l dot fsf at redhat dot com> <837fpp2uz5 dot fsf at gnu dot org> <94F6A309-A197-4A71-BEB9-42E009DD1EB5 at dell dot com>
On Friday, July 24 2015, Paul Koning wrote:
> But if you omit a shell, is the user of that shell blocked from using
> gdb? Thatâs not a good failure mode. It seems to me that omitting a
> non-shell is much more forgiving: all that happens is that you donât
> get the friendly error message.
As I said before, I agree with this rationale. However, I just would
like to make it clear that if the shell is invalid, the user will still
be able to start inferiors because GDB will default to /bin/sh.
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/