From patchwork Sun Jan 11 21:20:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Kettenis X-Patchwork-Id: 4616 Received: (qmail 31934 invoked by alias); 11 Jan 2015 21:20:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 31913 invoked by uid 89); 11 Jan 2015 21:20:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_STOCKGEN, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: glazunov.sibelius.xs4all.nl Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 11 Jan 2015 21:20:12 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id t0BLK8Xb019820 for ; Sun, 11 Jan 2015 22:20:08 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id t0BLK8GV030609; Sun, 11 Jan 2015 22:20:08 +0100 (CET) Date: Sun, 11 Jan 2015 22:20:08 +0100 (CET) Message-Id: <201501112120.t0BLK8GV030609@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: gdb-patches@sourceware.org Subject: [PATCH] Fix build on OpenBSD This bit was missed in the conversion back in September. Committed as obvious. gdb/ChangeLog: * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that inferior_thread is a function. --- gdb/ChangeLog | 5 +++++ gdb/inf-ptrace.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3070077..e887a99 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 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. */