aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-04-24 00:58:43 +0000
committerDoug Evans <dje@google.com>2010-04-24 00:58:43 +0000
commit65730243397a2680bfb31b18d32c366f450a78d1 (patch)
treeb664f0483ec95282fa822f165fb8d6f861127916 /gdb/gdbserver
parent1f9684961f5969c70882136e177469dcab93baaf (diff)
downloadgdb-65730243397a2680bfb31b18d32c366f450a78d1.zip
gdb-65730243397a2680bfb31b18d32c366f450a78d1.tar.gz
gdb-65730243397a2680bfb31b18d32c366f450a78d1.tar.bz2
* server.c (start_inferior): Print inferior argv if --debug.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/server.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 2181efb..f77fbca 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 9c05c7f..35ea802 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -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);