binutils-gdb/gdb/cli
Tom Tromey 974e684463 Unify shell-finding logic
I noticed several places in gdb that were using getenv("SHELL") and
then falling back to "/bin/sh" if it returned NULL.  This unifies
these into a single function.

gdb/ChangeLog
2018-10-27  Tom Tromey  <tom@tromey.com>

	* procfs.c (procfs_target::create_inferior): Use get_shell.
	* cli/cli-cmds.c (shell_escape): Use get_shell.
	* windows-nat.c (windows_nat_target::create_inferior): Use
	get_shell.
	* common/pathstuff.c (get_shell): New function.
	* nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
	(fork_inferior): Use get_shell.
	* common/pathstuff.h (get_shell): Declare.
2018-10-27 11:58:40 -06:00
..
cli-cmds.c Unify shell-finding logic 2018-10-27 11:58:40 -06:00
cli-cmds.h
cli-decode.c gdb: Change how frames are selected for 'frame' and 'info frame'. 2018-09-28 11:59:34 +01:00
cli-decode.h Use counted_command_line everywhere 2018-05-04 15:58:06 -06:00
cli-dump.c Fix PR cli/23785: Check if file exists when invoking "restore FILE binary" 2018-10-18 17:39:09 -04:00
cli-interp.c Fix cli_interp::cli_uiout resource leak found by Coverity 2018-10-19 11:52:33 +01:00
cli-interp.h
cli-logging.c
cli-script.c python: Make gdb.execute("show commands") work (PR 23669) 2018-09-17 08:26:24 -04:00
cli-script.h Let gdb.execute handle multi-line commands 2018-05-04 15:58:09 -06:00
cli-setshow.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
cli-setshow.h
cli-utils.c New cli-utils.h/.c function extract_info_print_args 2018-10-27 13:45:57 +02:00
cli-utils.h New cli-utils.h/.c function extract_info_print_args 2018-10-27 13:45:57 +02:00