Don't write to inferior_ptid in tracectf.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:24 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:07:35 +0000 (23:07 +0100)
commit5233f39b8b999f2675fb9493149e878c281e1d60
treebf7215ab791d499f31f186d5327eab880948dcbd
parent087e161b3cd9a8626dc05ce1bdb8dfaf353a71b1
Don't write to inferior_ptid in tracectf.c

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

* tracectf.c (ctf_target_open): Switch to added thread instead of
writing to inferior_ptid directly.
(ctf_target::close): Use switch_to_no_thread instead of writing to
inferior_ptid directly.
gdb/ChangeLog
gdb/tracectf.c