Don't write to inferior_ptid in inf-ptrace.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:20 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:04:17 +0000 (23:04 +0100)
commit6155c136ccf04b1e4ae1bdc201b853ce899b8607
tree51a93b77b05afcd0e596dd83da90f5e3b91947b3
parentc5316fc6e634858a3821e612e613342da562e0b3
Don't write to inferior_ptid in inf-ptrace.c

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

* inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
added thread.
(inf_ptrace_target::attach): Don't write to inferior_ptid.  Switch
to the added thread.
(inf_ptrace_target::detach_success): Use switch_to_no_thread
instead of writing to inferior_ptid.
gdb/ChangeLog
gdb/inf-ptrace.c