patches/gdb/6.3/820-debian_disable-linux-fork-messages.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 17 16:22:51 2007 +0000 (2007-05-17)
changeset 96 aa1a9fbd6eb8
permissions -rw-r--r--
Debug facilities:
- add a framework to easily add new ones
- add gdb as a first debug facility
- add patches for gdb
After the kernel checked its installed headers, clean up the mess of .checked.* files.
Reorder scripts/crosstool.sh:
- dump the configuration early
- renice early
- get info about build system early, when setting up the environment
- when in cross or native, the host tools are those of the build system, and only in this case
- elapsed time calculations moved to scripts/functions
Remove handling of the color: it's gone once and for all.
Update tools/addToolVersion.sh:
- handle debug facilities
- commonalise some code
- remove dead tools (cygwin, tcc)
Point to my address for bug reports.
     1 Status: Proposed upstream after 6.3, not yet committed.
     2 
     3 2004-12-06  Daniel Jacobowitz  <dan@debian.org>
     4 
     5 	* linux-nat.c (child_follow_fork): Call target_terminal_ours before
     6 	printing output.  Use fprintf_unfiltered.  Only print output when
     7 	debugging.
     8 
     9 Index: gdb-6.3/gdb/linux-nat.c
    10 ===================================================================
    11 --- gdb-6.3.orig/gdb/linux-nat.c	2004-12-08 18:22:20.386956067 -0500
    12 +++ gdb-6.3/gdb/linux-nat.c	2004-12-08 18:28:49.995585970 -0500
    13 @@ -347,9 +347,13 @@ child_follow_fork (int follow_child)
    14  	 also, but they'll be reinserted below.  */
    15        detach_breakpoints (child_pid);
    16  
    17 -      fprintf_filtered (gdb_stdout,
    18 -			"Detaching after fork from child process %d.\n",
    19 -			child_pid);
    20 +      if (debug_linux_nat)
    21 +	{
    22 +	  target_terminal_ours ();
    23 +	  fprintf_unfiltered (gdb_stdlog,
    24 +			      "Detaching after fork from child process %d.\n",
    25 +			      child_pid);
    26 +	}
    27  
    28        ptrace (PTRACE_DETACH, child_pid, 0, 0);
    29  
    30 @@ -418,9 +422,13 @@ child_follow_fork (int follow_child)
    31        /* Before detaching from the parent, remove all breakpoints from it. */
    32        remove_breakpoints ();
    33  
    34 -      fprintf_filtered (gdb_stdout,
    35 -			"Attaching after fork to child process %d.\n",
    36 -			child_pid);
    37 +      if (debug_linux_nat)
    38 +	{
    39 +	  target_terminal_ours ();
    40 +	  fprintf_unfiltered (gdb_stdlog,
    41 +			      "Attaching after fork to child process %d.\n",
    42 +			      child_pid);
    43 +	}
    44  
    45        /* If we're vforking, we may want to hold on to the parent until
    46  	 the child exits or execs.  At exec time we can remove the old