• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/toolchain/gdb/6.3/820-debian_disable-linux-fork-messages.patch
Eric AndersenEric Andersen committed bb000d4268414 Apr 2005
Raw file
Source viewDiff to previous
 
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
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.