Fix build failure in inf-ptrace.c.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 1 Jan 2010 07:03:54 +0000 (07:03 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 1 Jan 2010 07:03:54 +0000 (07:03 +0000)
        * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.

gdb/ChangeLog
gdb/ChangeLog-2009
gdb/inf-ptrace.c

index ac3afb12cbb84e3c13737111e30243a62364e610..d212062a245be0866ee87d87fc660506a7f0af2f 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-01  Joel Brobecker  <brobecker@adacore.com>
+
+       Fix build failure in inf-ptrace.c.
+       * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
+
 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
 
        * top.c (print_gdb_version): Update copyright year.
index 753fbb0cc0aa90eb045b77169cf050250af327f1..6bee817fbeaa5869939c0fb4543baa50d72c7f45 100644 (file)
        * breakpoint.c (update_watchpoint): Change b->type to
        bp_watchpoint before calling hw_watchpoint_used_count.
 
-2009-12-30  Joel Brobecker  <brobecker@adacore.com>
-
-       Fix build failure in inf-ptrace.c.
-       * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
-
 2009-12-30  Joel Brobecker  <brobecker@adacore.com>
 
        * breakpoint.c (watchpoint_check): Expand the function description.
index a138701d06e73c87c67aa836790151888f790d08..d2df3b1576221a4ceb0962ae4caa010baf2a5a8e 100644 (file)
@@ -67,8 +67,8 @@ inf_ptrace_follow_fork (struct target_ops *ops, int follow_child)
       child_inf = add_inferior (fpid);
       child_inf->attach_flag = parent_inf->attach_flag;
       copy_terminal_info (child_inf, parent_inf);
-      inf->pspace = parent_inf->pspace;
-      inf->pspace = parent_inf->aspace;
+      child_inf->pspace = parent_inf->pspace;
+      child_inf->aspace = parent_inf->aspace;
 
       /* Before detaching from the parent, remove all breakpoints from
         it.  */