* server.c (start_inferior): Print inferior argv if --debug.
authorDoug Evans <dje@google.com>
Sat, 24 Apr 2010 00:58:43 +0000 (00:58 +0000)
committerDoug Evans <dje@google.com>
Sat, 24 Apr 2010 00:58:43 +0000 (00:58 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 2181efb011165b5ef6a716308f1d1b88bf58ac11..f77fbcaa49c914013f15b8e87b1ce1de95a82570 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-23  Doug Evans  <dje@google.com>
+
+       * server.c (start_inferior): Print inferior argv if --debug.
+
 2010-04-21  Aleksandar Ristovski  <aristovski@qnx.com>
 
        * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
index 9c05c7fcc53e8381cda5847d237cd8a4f91a76bb..35ea802ea51b3a2ee6f16772618ab4a7fab4a4c6 100644 (file)
@@ -241,6 +241,14 @@ start_inferior (char **argv)
       new_argv[count] = NULL;
     }
 
+  if (debug_threads)
+    {
+      int i;
+      for (i = 0; new_argv[i]; ++i)
+       fprintf (stderr, "new_argv[%d] = \"%s\"\n", i, new_argv[i]);
+      fflush (stderr);
+    }
+
 #ifdef SIGTTOU
   signal (SIGTTOU, SIG_DFL);
   signal (SIGTTIN, SIG_DFL);