aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2020-06-18 21:28:28 +0100
committerPedro Alves <palves@redhat.com>2020-06-18 23:11:23 +0100
commit975f8708de015fb2b813edbf8b714f4777c57a41 (patch)
treeb8ce29a14c6aa23f7c87d4743c7ff134b50b954f /gdb/ChangeLog
parent1a20473059c7a088b9f3c4188c09976eebbc3ab4 (diff)
downloadgdb-975f8708de015fb2b813edbf8b714f4777c57a41.zip
gdb-975f8708de015fb2b813edbf8b714f4777c57a41.tar.gz
gdb-975f8708de015fb2b813edbf8b714f4777c57a41.tar.bz2
Don't write to inferior_ptid in gnu-nat.c
Untested. gdb/ChangeLog: 2020-06-18 Pedro Alves <palves@redhat.com> * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added thread. (gnu_nat_target::attach): Don't write to inferior_ptid directly. Instead use switch_to_thread. (gnu_nat_target::detach): Use switch_to_no_thread instead of writing to inferior_ptid directly. Used passed-in inferior instead of looking up the inferior by pid.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eff2fa2..88db3be 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
2020-06-18 Pedro Alves <palves@redhat.com>
+ * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
+ thread.
+ (gnu_nat_target::attach): Don't write to inferior_ptid directly.
+ Instead use switch_to_thread.
+ (gnu_nat_target::detach): Use switch_to_no_thread
+ instead of writing to inferior_ptid directly. Used passed-in
+ inferior instead of looking up the inferior by pid.
+
+2020-06-18 Pedro Alves <palves@redhat.com>
+
* go32-nat.c (go32_nat_target::create_inferior): Don't write to
inferior_ptid.