Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix OpenBSD build error.
@ 2020-04-15 19:26 cbiesinger
  2020-04-15 19:57 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: cbiesinger @ 2020-04-15 19:26 UTC (permalink / raw)
  To: gdb-patches

From: Kamil Rytarowski <n54@gmx.com>

This was likely introduced by 5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2

gdb/ChangeLog:

2020-04-15  Kamil Rytarowski  <n54@gmx.com>

	* obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
	thread functions.
	(obsd_nat_target::wait): Likewise.

Change-Id: Ib8d11238c55e0ebdbcf127d1f28c9693c785527a
---
 gdb/obsd-nat.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c
index faef8ff7d3..b1f3d0b1b4 100644
--- a/gdb/obsd-nat.c
+++ b/gdb/obsd-nat.c
@@ -59,12 +59,12 @@ obsd_nat_target::update_thread_list ()
     {
       ptid_t ptid = ptid_t (pid, pts.pts_tid, 0);
 
-      if (!in_thread_list (ptid))
+      if (!in_thread_list (this, ptid))
 	{
 	  if (inferior_ptid.lwp () == 0)
-	    thread_change_ptid (inferior_ptid, ptid);
+	    thread_change_ptid (this, inferior_ptid, ptid);
 	  else
-	    add_thread (ptid);
+	    add_thread (this, ptid);
 	}
 
       if (ptrace (PT_GET_THREAD_NEXT, pid, (caddr_t)&pts, sizeof pts) == -1)
@@ -147,12 +147,12 @@ obsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
 	}
 
       ptid = ptid_t (pid, pe.pe_tid, 0);
-      if (!in_thread_list (ptid))
+      if (!in_thread_list (this, ptid))
 	{
 	  if (inferior_ptid.lwp () == 0)
-	    thread_change_ptid (inferior_ptid, ptid);
+	    thread_change_ptid (this, inferior_ptid, ptid);
 	  else
-	    add_thread (ptid);
+	    add_thread (this, ptid);
 	}
     }
 
-- 
2.26.0.110.g2183baf09c-goog



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix OpenBSD build error.
  2020-04-15 19:26 [PATCH] Fix OpenBSD build error cbiesinger
@ 2020-04-15 19:57 ` Kevin Buettner
  2020-04-15 20:00   ` Christian Biesinger
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2020-04-15 19:57 UTC (permalink / raw)
  To: cbiesinger--- via Gdb-patches; +Cc: cbiesinger

On Wed, 15 Apr 2020 14:26:05 -0500
cbiesinger--- via Gdb-patches <gdb-patches@sourceware.org> wrote:

> From: Kamil Rytarowski <n54@gmx.com>
> 
> This was likely introduced by 5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2
> 
> gdb/ChangeLog:
> 
> 2020-04-15  Kamil Rytarowski  <n54@gmx.com>
> 
> 	* obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
> 	thread functions.
> 	(obsd_nat_target::wait): Likewise.

LGTM.

Kevin



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix OpenBSD build error.
  2020-04-15 19:57 ` Kevin Buettner
@ 2020-04-15 20:00   ` Christian Biesinger
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Biesinger @ 2020-04-15 20:00 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: cbiesinger--- via Gdb-patches

On Wed, Apr 15, 2020 at 2:58 PM Kevin Buettner <kevinb@redhat.com> wrote:
>
> On Wed, 15 Apr 2020 14:26:05 -0500
> cbiesinger--- via Gdb-patches <gdb-patches@sourceware.org> wrote:
>
> > From: Kamil Rytarowski <n54@gmx.com>
> >
> > This was likely introduced by 5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2
> >
> > gdb/ChangeLog:
> >
> > 2020-04-15  Kamil Rytarowski  <n54@gmx.com>
> >
> >       * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
> >       thread functions.
> >       (obsd_nat_target::wait): Likewise.
>
> LGTM.

Thanks, pushed.

Christian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-15 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 19:26 [PATCH] Fix OpenBSD build error cbiesinger
2020-04-15 19:57 ` Kevin Buettner
2020-04-15 20:00   ` Christian Biesinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox