From: Mark Kettenis Date: Sun, 11 Jan 2015 21:16:11 +0000 (+0100) Subject: Fix build on OpenBSD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebf3aa72243fec4bc02617673b243a63050e6127;p=binutils-gdb.git Fix build on OpenBSD. gdb/ChangeLog: * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that inferior_thread is a function. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3070077568f..e887a995916 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-01-11 Mark Kettenis + + * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that + inferior_thread is a function. + 2015-01-11 Doug Evans * symtab.c (eq_symbol_entry): Use SYMBOL_SEARCH_NAME and diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 861e57d10ac..4c22a84ba4d 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -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. */