summaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-01 07:03:52 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-01 07:03:52 +0000
commit6e9cf4d36d6bbd052657b93f2ca4d1720145bee9 (patch)
tree67c75d1a37bbd8714124f4669787eb051680b5fe /gdb/inf-ptrace.c
parent215a9810f9dbcfc1ec9af18d6a3acec51d369c7e (diff)
downloadgdb-6e9cf4d36d6bbd052657b93f2ca4d1720145bee9.tar.gz
Fix build failure in inf-ptrace.c.
* inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
Diffstat (limited to 'gdb/inf-ptrace.c')
-rw-r--r--gdb/inf-ptrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index a138701d06e..d2df3b15762 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -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. */