GDB: Work around D;PID handling bug in older GDBservers (PR gdb/23377)
authorPedro Alves <palves@redhat.com>
Wed, 11 Jul 2018 22:31:44 +0000 (23:31 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 11 Jul 2018 22:33:19 +0000 (23:33 +0100)
commit4c7333b308f5178813745f40e641231efb1cb763
tree854c93f7e99c5604739a97b105fd9445028ef020
parent31445d1036f7fc41de2724cb016913c9b1461bb1
GDB: Work around D;PID handling bug in older GDBservers (PR gdb/23377)

This commit adds a GDB workaround for the GDBserver bug exposed by
commit f2ffa92bbce9 ("gdb: Eliminate the 'stop_pc' global"), so that
newer GDBs can continue working with older GDBservers.

gdb/ChangeLog:
2018-07-11  Pedro Alves  <palves@redhat.com>

PR gdb/23377
* remote.c (remote_target::remote_detach_pid): Call
set_current_process.
gdb/ChangeLog
gdb/remote.c