This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC] Set default value of detach_fork to off
- From: Hui Zhu <teawater at gmail dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Sat, 8 May 2010 20:19:29 +0800
- Subject: [RFC] Set default value of detach_fork to off
Hi guys,
Looks multi-inferior is more better than before. I suggest set
default value of detach_fork to off.
Then when the user debug the multi-process program, they can debug the
inferior like multi-thread inferior.
What do you think about it?
Thanks,
Hui
2010-05-08 Hui Zhu <teawater@gmail.com>
* infrun.c (detach_fork): Change default value to 0.
---
infrun.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/infrun.c
+++ b/infrun.c
@@ -109,7 +109,7 @@ int sync_execution = 0;
static ptid_t previous_inferior_ptid;
/* Default behavior is to detach newly forked processes (legacy). */
-int detach_fork = 1;
+int detach_fork = 0;
int debug_displaced = 0;
static void