GDB: Work around D;PID handling bug in older GDBservers (PR gdb/23377)
authorPedro Alves <palves@redhat.com>
Wed, 11 Jul 2018 22:40:51 +0000 (23:40 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 11 Jul 2018 22:40:51 +0000 (23:40 +0100)
commit49b000dc5686e016f05b717f18d2c8f865eb3617
tree8aeedc6c81eeb7266e2863148c5b15a186491759
parent1f010560368f7726eba2629a3c26298cab5d87b3
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