From 65730243397a2680bfb31b18d32c366f450a78d1 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 24 Apr 2010 00:58:43 +0000 Subject: [PATCH] * server.c (start_inferior): Print inferior argv if --debug. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/server.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 2181efb0111..f77fbcaa49c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2010-04-23 Doug Evans + + * server.c (start_inferior): Print inferior argv if --debug. + 2010-04-21 Aleksandar Ristovski * 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 9c05c7fcc53..35ea802ea51 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); -- 2.30.2