From: dje@google.com (Doug Evans)
To: gdb-patches@sourceware.org
Subject: [patch] gdbserver: print inferior argv --debug
Date: Tue, 20 Apr 2010 07:21:00 -0000 [thread overview]
Message-ID: <20100420072103.179AF8439A@ruffy.mtv.corp.google.com> (raw)
Hi.
I found this helpful debugging gdbserver --wrapper.
I will check it in in a few days if there are no objections.
2010-04-20 Doug Evans <dje@google.com>
* server.c (start_inferior): Print inferior argv if --debug.
Index: server.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/server.c,v
retrieving revision 1.116
diff -u -p -r1.116 server.c
--- server.c 16 Apr 2010 07:49:36 -0000 1.116
+++ server.c 20 Apr 2010 07:14:54 -0000
@@ -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);
next reply other threads:[~2010-04-20 7:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 7:21 Doug Evans [this message]
2010-04-20 7:53 ` Pierre Muller
[not found] ` <-6536644988877721859@unknownmsgid>
2010-04-20 7:55 ` Doug Evans
2010-04-24 0:59 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100420072103.179AF8439A@ruffy.mtv.corp.google.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox