public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] GDBserver: Pass process_info pointers to target methods
@ 2018-07-12 22:25 Pedro Alves
  2018-07-12 22:25 ` [PATCH 2/2] GDBserver: Pass process_info pointer to target_kill Pedro Alves
  2018-07-12 22:25 ` [PATCH 1/2] GDBserver: Pass process_info pointer to target_detach and target_join Pedro Alves
  0 siblings, 2 replies; 7+ messages in thread
From: Pedro Alves @ 2018-07-12 22:25 UTC (permalink / raw)
  To: gdb-patches

While working on the multi-forks.exp regression fix, I noticed how for
some of the gdbserver target_ops methods, the core of gdbserver starts
from a process_info pointer, passes down the process's pid, and then
the method implementations need to find the process from the pid
again.  This series adjusts the target_ops interfaces to pass the
process_info pointer down directly instead.

Pedro Alves (2):
  GDBserver: Pass process_info pointer to target_detach and target_join
  GDBserver: Pass process_info pointer to target_kill

 gdb/gdbserver/linux-low.c | 26 ++++++++------------------
 gdb/gdbserver/lynx-low.c  | 20 +++++---------------
 gdb/gdbserver/nto-low.c   |  6 ++++--
 gdb/gdbserver/server.c    | 18 +++++++++---------
 gdb/gdbserver/spu-low.c   | 18 ++++++------------
 gdb/gdbserver/target.c    |  6 +++---
 gdb/gdbserver/target.h    | 23 ++++++++++++-----------
 gdb/gdbserver/win32-low.c | 25 ++++++++++---------------
 8 files changed, 57 insertions(+), 85 deletions(-)

-- 
2.14.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-13 10:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 22:25 [PATCH 0/2] GDBserver: Pass process_info pointers to target methods Pedro Alves
2018-07-12 22:25 ` [PATCH 2/2] GDBserver: Pass process_info pointer to target_kill Pedro Alves
2018-07-13  3:07   ` Simon Marchi
2018-07-13 10:02     ` Pedro Alves
2018-07-12 22:25 ` [PATCH 1/2] GDBserver: Pass process_info pointer to target_detach and target_join Pedro Alves
2018-07-13  3:01   ` Simon Marchi
2018-07-13 10:01     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).