diff options
author | Pedro Alves <palves@redhat.com> | 2018-07-13 10:28:46 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-07-13 10:28:46 +0100 |
commit | ef2ddb33bd29a7c4f7027b9e37e55c74c15af825 (patch) | |
tree | 2f9d11da4ff51a4197b8537f1457c6ff22732f15 /elfcpp/dwarf.h | |
parent | 9451a3b9a1af46cbe988c3a2cf4c4754d7e84143 (diff) | |
download | gdb-ef2ddb33bd29a7c4f7027b9e37e55c74c15af825.zip gdb-ef2ddb33bd29a7c4f7027b9e37e55c74c15af825.tar.gz gdb-ef2ddb33bd29a7c4f7027b9e37e55c74c15af825.tar.bz2 |
GDBserver: Pass process_info pointer to target_detach and target_join
We start from a process_info pointer, pass down process->pid, and then
the target_detach and target_join implementations need to find the
process from the pid again. Pass the process_info pointer down
directly instead.
gdb/gdbserver/ChangeLog:
2018-07-13 Pedro Alves <palves@redhat.com>
* linux-low.c (linux_detach, linux_join): Change parameter to
process_info pointer instead of pid. Adjust.
* lynx-low.c (lynx_detach, lynx_join): Likewise.
* nto-low.c (nto_detach): Likewise.
* spu-low.c (spu_detach, spu_join): Likewise.
* win32-low.c (win32_detach, win32_join): Likewise.
* server.c (handle_detach, detach_or_kill_for_exit): Adjust.
* target.h (struct target_ops) <detach, join>: Change parameter to
process_info pointer instead of pid. Adjust all implementations
and callers.
(detach_inferior, join_inferior): Rename 'pid' parameter to
'proc'.
Diffstat (limited to 'elfcpp/dwarf.h')
0 files changed, 0 insertions, 0 deletions