public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix build on OpenBSD
@ 2015-01-11 21:20 Mark Kettenis
  0 siblings, 0 replies; only message in thread
From: Mark Kettenis @ 2015-01-11 21:20 UTC (permalink / raw)
  To: gdb-patches

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  <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
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.  */
-- 
2.2.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-11 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-11 21:20 [PATCH] Fix build on OpenBSD Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).