From 975f8708de015fb2b813edbf8b714f4777c57a41 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 18 Jun 2020 21:28:28 +0100 Subject: Don't write to inferior_ptid in gnu-nat.c Untested. gdb/ChangeLog: 2020-06-18 Pedro Alves * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added thread. (gnu_nat_target::attach): Don't write to inferior_ptid directly. Instead use switch_to_thread. (gnu_nat_target::detach): Use switch_to_no_thread instead of writing to inferior_ptid directly. Used passed-in inferior instead of looking up the inferior by pid. --- gdb/ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eff2fa2..88db3be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2020-06-18 Pedro Alves + * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added + thread. + (gnu_nat_target::attach): Don't write to inferior_ptid directly. + Instead use switch_to_thread. + (gnu_nat_target::detach): Use switch_to_no_thread + instead of writing to inferior_ptid directly. Used passed-in + inferior instead of looking up the inferior by pid. + +2020-06-18 Pedro Alves + * go32-nat.c (go32_nat_target::create_inferior): Don't write to inferior_ptid. -- cgit v1.1