chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / gdb / cli_cmds_c_bin_sh.patch
1 diff -u -r ../gdb-7.6.2/gdb/cli/cli-cmds.c ./gdb/cli/cli-cmds.c
2 --- ../gdb-7.6.2/gdb/cli/cli-cmds.c     2013-12-08 05:33:13.000000000 +0100
3 +++ ./gdb/cli/cli-cmds.c        2014-01-07 16:43:01.862311352 +0100
4 @@ -722,7 +722,7 @@
5        const char *p, *user_shell;
6  
7        if ((user_shell = (char *) getenv ("SHELL")) == NULL)
8 -       user_shell = "/bin/sh";
9 +       user_shell = "@TERMUX_PREFIX@/bin/sh";
10  
11        /* Get the name of the shell for arg0.  */
12        p = lbasename (user_shell);