Blob Blame History Raw
--- BUILD/cgdb-0.6.8/lib/util/fork_util.c.disable_shell_style	2014-07-23 04:43:00.000000000 +0300
+++ BUILD/cgdb-0.6.8/lib/util/fork_util.c	2019-07-04 16:42:04.749828019 +0300
@@ -187,10 +187,12 @@
     const char *const NW = "--nw";
     const char *const X = "-x";
     const char *const ANNOTATE_TWO = "--annotate=2";
+	const char *const DISABLE_STYLE_P = "-init-eval-command";
+	const char *const DISABLE_STYLE_V = "set style enabled off";
     const char *const GDBMI = "-i=mi2";
     char *F = filename;
     char **local_argv;
-    int i, j = 0, extra = 6;
+    int i, j = 0, extra = 8;
     int malloc_size = argc + extra;
     char slavename[64];
     int masterfd;
@@ -203,6 +205,10 @@
     else
         local_argv[j++] = cgdb_strdup(GDB);
 
+    /* Gilboa: Disable extended shell style. */
+    local_argv[j++] = cgdb_strdup(DISABLE_STYLE_P);
+    local_argv[j++] = cgdb_strdup(DISABLE_STYLE_V);
+
     /* NOTE: These options have to come first, since if the user
      * typed '--args' to GDB, everything at the end of the 
      * users options become parameters to the inferior.