[gnome-builder/gnome-builder-3-40] gdb: handle /bin/ as well
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-40] gdb: handle /bin/ as well
- Date: Fri, 30 Apr 2021 19:01:09 +0000 (UTC)
commit a82e56d714a663335ddec276b0d8ac92dd16f6ba
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 30 12:00:31 2021 -0700
gdb: handle /bin/ as well
src/plugins/gdb/gbp-gdb-debugger.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/gdb/gbp-gdb-debugger.c b/src/plugins/gdb/gbp-gdb-debugger.c
index 8b6cc44e1..6b8df2dc9 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -2366,7 +2366,8 @@ gbp_gdb_debugger_prepare (IdeDebugger *debugger,
* like '$SHELL -c "exec $APP"' in gdb.
*/
shell = ide_get_user_shell ();
- if (!ide_str_equal0 (shell, "sh") && !ide_str_equal0 (shell, "bash"))
+ if (!ide_str_equal0 (shell, "/bin/sh") && !ide_str_equal0 (shell, "sh") &&
+ !ide_str_equal0 (shell, "/bin/bash") && !ide_str_equal0 (shell, "bash"))
ide_environment_setenv (env, "SHELL", "sh");
/* Connect to all our important signals */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]