• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂6dbdab44e57d21c895ef60246d0e7aadb3c076a4 (tree)
時間2020-06-19 07:18:08
作者Pedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

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.

Change Summary

差異

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
11 2020-06-18 Pedro Alves <palves@redhat.com>
22
3+ * aix-thread.c (pd_update): Use switch_to_thread.
4+
5+2020-06-18 Pedro Alves <palves@redhat.com>
6+
37 * ravenscar-thread.c (ravenscar_thread_target): Update.
48 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
59 (ravenscar_thread_target::add_active_thread): ... this. Don't
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -902,7 +902,7 @@ pd_update (int set_infpid)
902902 {
903903 ptid = thread->ptid;
904904 if (set_infpid)
905- inferior_ptid = ptid;
905+ switch_to_thread (thread);
906906 }
907907 return ptid;
908908 }