diff options
author | Mark Kettenis <kettenis@gnu.org> | 2015-01-11 22:16:11 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2015-01-11 22:16:11 +0100 |
commit | ebf3aa72243fec4bc02617673b243a63050e6127 (patch) | |
tree | 6a54f5c17e6b899565c8eb791a49578bb893d155 /gdb/inf-ptrace.c | |
parent | 77087adf50cedf78cc216ac6eb3b2863839d713c (diff) | |
download | gdb-ebf3aa72243fec4bc02617673b243a63050e6127.zip gdb-ebf3aa72243fec4bc02617673b243a63050e6127.tar.gz gdb-ebf3aa72243fec4bc02617673b243a63050e6127.tar.bz2 |
Fix build on OpenBSD.
gdb/ChangeLog:
* inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
inferior_thread is a function.
Diffstat (limited to 'gdb/inf-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 861e57d..4c22a84 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. */ |