Don't write to inferior_ptid in darwin-nat.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:28 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:11:57 +0000 (23:11 +0100)
commitfe7d6a8db01f2a71520578267df7cd2d780ececb
tree71fd42bef6a4f3ad195216ccb9b5dbf826c51b31
parent975f8708de015fb2b813edbf8b714f4777c57a41
Don't write to inferior_ptid in darwin-nat.c

Untested.

gdb/ChangeLog:
2020-06-18  Pedro Alves  <palves@redhat.com>

* darwin-nat.c (darwin_nat_target::decode_message): Don't write to
inferior_ptid.
(darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
inferior_ptid.
(darwin_attach_pid): Use switch_to_no_thread instead of writing to
inferior_ptid directly.
(darwin_nat_target::init_thread_list): Switch to thread, instead
of writing to inferior_ptid.
(darwin_nat_target::attach): Don't write to inferior_ptid.
(darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
gdb/ChangeLog
gdb/darwin-nat.c