This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Print linux_supports_tracefork_flag if --debug.
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Tue, 2 Mar 2010 14:01:11 -0800 (PST)
- Subject: [patch] Print linux_supports_tracefork_flag if --debug.
Hi.
I've found this patch useful.
I'll check it in tomorrow if there are no objections.
2010-03-02 Doug Evans <dje@google.com>
* linux-low.c (linux_test_for_tracefork): Print
linux_supports_tracefork_flag if --debug.
Index: linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.129
diff -u -p -r1.129 linux-low.c
--- linux-low.c 13 Feb 2010 01:13:54 -0000 1.129
+++ linux-low.c 2 Mar 2010 21:59:31 -0000
@@ -2724,6 +2724,10 @@ linux_test_for_tracefork (void)
#if defined(__UCLIBC__) && defined(HAS_NOMMU)
free (stack);
#endif /* defined(__UCLIBC__) && defined(HAS_NOMMU) */
+
+ if (debug_threads)
+ fprintf (stderr, "linux_supports_tracefork_flag = %d\n",
+ linux_supports_tracefork_flag);
}