Fix build on OpenBSD.
authorMark Kettenis <kettenis@gnu.org>
Sun, 11 Jan 2015 21:16:11 +0000 (22:16 +0100)
committerMark Kettenis <kettenis@gnu.org>
Sun, 11 Jan 2015 21:16:11 +0000 (22:16 +0100)
gdb/ChangeLog:

* inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
inferior_thread is a function.

gdb/ChangeLog
gdb/inf-ptrace.c

index 3070077568f2b4fc8da34df3e1c5f006acd1180c..e887a995916ee9cb1fa680548b2ad83e19a598a7 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-11  Mark Kettenis  <kettenis@gnu.org>
+
+       * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
+       inferior_thread is a function.
+
 2015-01-11  Doug Evans  <xdje42@gmail.com>
 
        * symtab.c (eq_symbol_entry): Use SYMBOL_SEARCH_NAME and
index 861e57d10ac856f9f6447ca7a293380b7f6bc7cd..4c22a84ba4d78f9f85db711d9175cf5f3d3017ed 100644 (file)
@@ -45,7 +45,8 @@ inf_ptrace_follow_fork (struct target_ops *ops, int follow_child,
 {
   if (!follow_child)
     {
-      pid_t child_pid = inferior_thread->pending_follow.value.related_pid;
+      struct thread_info *tp = inferior_thread ();
+      pid_t child_pid = ptid_get_pid (tp->pending_follow.value.related_pid);
 
       /* Breakpoints have already been detached from the child by
         infrun.c.  */