make xscale images containing proprietary microcode optional, but enabled by default
[openwrt.git] / toolchain / gdb / patches / 820-debian_disable-linux-fork-messages.patch
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
This page took 0.041698 seconds and 5 git commands to generate.