This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Set default value of detach_fork to off


> From: Hui Zhu <teawater@gmail.com>
> Date: Sat, 8 May 2010 20:19:29 +0800
> 
> 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?

I think we should keep the current default.  While the ability to
debug both sides of a fork is a nice feature to have, I think most
people are only interested in debugging the process they started the
debugger on.  It is not unusual for programs to use system(3) to
execute system binaries, and I doubt people are interested in
debugging those.  Typically those binaries will be stripped anyway.
Setting detach_fork to off will only interfere.
> 
> 2010-05-08  Hui Zhu  <teawater@gmail.com>
> 
> 	* infrun.c (detach_fork): Change default value to 0.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]