[PATCH 00/19] Remove find_inferior* and for_each_inferior*

Simon Marchi simark@simark.ca
Sun Dec 3 01:48:00 GMT 2017


On 2017-11-20 11:34 AM, Simon Marchi wrote:
> This patch series removes the last usages the the find_inferior and
> for_each_inferior family of functions in gdbserver, replacing their uses with
> the equivalent find_thread or for_each_thread.  The series as a whole has been
> regression tested on the Buildbot.
> 
> Simon Marchi (19):
>   Remove usage of find_inferior in regcache_invalidate_pid
>   Remove usage of find_inferior in lynx_mourn
>   Remove usages of find_inferior in linux-mips-low.c
>   Remove find_inferior_id
>   Remove find_inferior_in_random
>   Remove usage of find_inferior in last_thread_of_process_p
>   Remove usage of find_inferior in linux_detach
>   Remove usage of find_inferior in linux_mourn
>   Remove usage of find_inferior in find_lwp_pid
>   Remove usages of find_inferior calling not_stopped_callback
>   Remove usages of find_inferior in select_event_lwp
>   Remove usage of find_inferior in linux_stabilize_threads
>   Remove usages of find_inferior in stop_all_lwps
>   Remove usage of find_inferior in linux_resume
>   Remove usages of find_inferior that call proceed_one_lwp
>   Update comments
>   Remove find_inferior
>   Remove for_each_inferior
>   Remove for_each_inferior_with_data
> 
>  gdb/gdbserver/inferiors.c      |  63 +------
>  gdb/gdbserver/inferiors.h      |  13 --
>  gdb/gdbserver/linux-low.c      | 377 ++++++++++++++++++-----------------------
>  gdb/gdbserver/linux-mips-low.c |  37 ++--
>  gdb/gdbserver/lynx-low.c       |  16 +-
>  gdb/gdbserver/regcache.c       |  17 +-
>  gdb/gdbserver/server.c         |  38 ++---
>  gdb/gdbserver/thread-db.c      |   8 +-
>  gdb/gdbserver/win32-low.c      |  29 +---
>  9 files changed, 212 insertions(+), 386 deletions(-)
> 

I pushed this series in.

Simon



More information about the Gdb-patches mailing list