]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't write to inferior_ptid in nto-procfs.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:26 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:10:09 +0000 (23:10 +0100)
commitebe84f23d2f3c0cb145cc7b3acfb011a4c7df1c9
tree6c1a6b60d0c6a684340f8af203b6cc07d4f2cdc1
parent191f02e59316d8ff15684d24e1c8f4d07b2dd582
Don't write to inferior_ptid in nto-procfs.c

A best effort patch, which fixes some bit rot and removes some
inferior_ptid references -- this port clearly hasn't been built in a
long while.

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

* nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
inferior_ptid.
(nto_procfs_target::attach): Avoid inferior_ptid.  Switch to
thread.
(nto_procfs_target::detach): Avoid referencing
inferior_ptid.  Use switch_to_no_thread instead of writing to
inferior_ptid directly.
(nto_procfs_target::mourn_inferior): Use switch_to_no_thread
instead of writing to inferior_ptid directly.
(nto_procfs_target::create_inferior): Avoid inferior_ptid.  Switch
to thread.
gdb/ChangeLog
gdb/nto-procfs.c