aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-04-15 14:23:30 -0500
committerChristian Biesinger <cbiesinger@google.com>2020-04-15 14:59:44 -0500
commitc7d648090384ef01cf8ea2018bf952ed60a9677d (patch)
tree3c3d2350ac6d1d2ddc58e86f48f1c317c1fa2ca6
parentce127a96c912965e0fe24906d6083e5e9c79a92f (diff)
downloadgdb-c7d648090384ef01cf8ea2018bf952ed60a9677d.zip
gdb-c7d648090384ef01cf8ea2018bf952ed60a9677d.tar.gz
gdb-c7d648090384ef01cf8ea2018bf952ed60a9677d.tar.bz2
Fix OpenBSD build error.
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
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/obsd-nat.c12
2 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b0a535a..291a3ae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2020-04-15 Tom Tromey <tromey@adacore.com>
* windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c
index faef8ff..b1f3d0b 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);
}
}