5 changed files with 35 additions and 36 deletions
@ -1,21 +0,0 @@ |
|||
diff -uNr gdb-8.1/gdb/cli/cli-cmds.c gdb-8.1.mod/gdb/cli/cli-cmds.c
|
|||
--- gdb-8.1/gdb/cli/cli-cmds.c 2018-01-05 06:07:23.000000000 +0200
|
|||
+++ gdb-8.1.mod/gdb/cli/cli-cmds.c 2018-06-19 19:21:22.451443520 +0300
|
|||
@@ -731,7 +731,7 @@
|
|||
close_most_fds (); |
|||
|
|||
if ((user_shell = (char *) getenv ("SHELL")) == NULL) |
|||
- user_shell = "/bin/sh";
|
|||
+ user_shell = "@TERMUX_PREFIX@/bin/sh";
|
|||
|
|||
/* Get the name of the shell for arg0. */ |
|||
p = lbasename (user_shell); |
|||
@@ -851,7 +851,7 @@
|
|||
} |
|||
|
|||
if ((editor = (char *) getenv ("EDITOR")) == NULL) |
|||
- editor = "/bin/ex";
|
|||
+ editor = "@TERMUX_REFIX@/bin/applets/vi";
|
|||
|
|||
fn = symtab_to_fullname (sal.symtab); |
|||
|
@ -0,0 +1,12 @@ |
|||
diff -u -r ../gdb-8.3/gdb/cli/cli-cmds.c ./gdb/cli/cli-cmds.c
|
|||
--- ../gdb-8.3/gdb/cli/cli-cmds.c 2019-05-11 18:19:02.000000000 +0000
|
|||
+++ ./gdb/cli/cli-cmds.c 2019-05-11 22:43:31.962874247 +0000
|
|||
@@ -851,7 +851,7 @@
|
|||
} |
|||
|
|||
if ((editor = getenv ("EDITOR")) == NULL) |
|||
- editor = "/bin/ex";
|
|||
+ editor = "@TERMUX_PREFIX@/bin/applets/vi";
|
|||
|
|||
fn = symtab_to_fullname (sal.symtab); |
|||
|
@ -0,0 +1,21 @@ |
|||
diff -u -r ../gdb-8.3/gdb/common/pathstuff.c ./gdb/common/pathstuff.c
|
|||
--- ../gdb-8.3/gdb/common/pathstuff.c 2019-02-27 04:51:50.000000000 +0000
|
|||
+++ ./gdb/common/pathstuff.c 2019-05-11 22:45:37.765420769 +0000
|
|||
@@ -262,7 +262,7 @@
|
|||
if (tmp != nullptr) |
|||
return tmp; |
|||
|
|||
- return "/tmp";
|
|||
+ return "@TERMUX_PREFIX@/tmp";
|
|||
#endif |
|||
} |
|||
|
|||
@@ -273,7 +273,7 @@
|
|||
{ |
|||
const char *ret = getenv ("SHELL"); |
|||
if (ret == NULL) |
|||
- ret = "/bin/sh";
|
|||
+ ret = "@TERMUX_PREFIX@/bin/bash";
|
|||
|
|||
return ret; |
|||
} |
@ -1,12 +0,0 @@ |
|||
diff -u -r ../gdb-8.1/gdb/nat/fork-inferior.c ./gdb/nat/fork-inferior.c
|
|||
--- ../gdb-8.1/gdb/nat/fork-inferior.c 2018-01-05 05:07:23.000000000 +0100
|
|||
+++ ./gdb/nat/fork-inferior.c 2018-02-01 21:49:06.148349274 +0100
|
|||
@@ -32,7 +32,7 @@
|
|||
|
|||
/* Default shell file to be used if 'startup-with-shell' is set but |
|||
$SHELL is not. */ |
|||
-#define SHELL_FILE "/bin/sh"
|
|||
+#define SHELL_FILE "@TERMUX_PREFIX@/bin/sh"
|
|||
|
|||
/* Build the argument vector for execv(3). */ |
|||
|
Loading…
Reference in new issue