GNU Binutils with patches for OS216
修訂 | 6dbdab44e57d21c895ef60246d0e7aadb3c076a4 (tree) |
---|---|
時間 | 2020-06-19 07:18:08 |
作者 | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
Don't write to inferior_ptid in aix-thread.c
There are other writes in the file, but they seem more harmless. This
one is changing the current thread permanently.
gdb/ChangeLog:
2020-06-18 Pedro Alves <palves@redhat.com>
* aix-thread.c (pd_update): Use switch_to_thread.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * aix-thread.c (pd_update): Use switch_to_thread. | |
4 | + | |
5 | +2020-06-18 Pedro Alves <palves@redhat.com> | |
6 | + | |
3 | 7 | * ravenscar-thread.c (ravenscar_thread_target): Update. |
4 | 8 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... |
5 | 9 | (ravenscar_thread_target::add_active_thread): ... this. Don't |
@@ -902,7 +902,7 @@ pd_update (int set_infpid) | ||
902 | 902 | { |
903 | 903 | ptid = thread->ptid; |
904 | 904 | if (set_infpid) |
905 | - inferior_ptid = ptid; | |
905 | + switch_to_thread (thread); | |
906 | 906 | } |
907 | 907 | return ptid; |
908 | 908 | } |