From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103091 invoked by alias); 3 Dec 2017 01:48:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 102677 invoked by uid 89); 3 Dec 2017 01:48:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=family X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Dec 2017 01:48:01 +0000 Received: from [10.0.0.11] (192-222-251-162.qc.cable.ebox.net [192.222.251.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 5799C1E02D; Sat, 2 Dec 2017 20:47:59 -0500 (EST) Subject: Re: [PATCH 00/19] Remove find_inferior* and for_each_inferior* To: Simon Marchi , gdb-patches@sourceware.org References: <1511195683-2055-1-git-send-email-simon.marchi@ericsson.com> From: Simon Marchi Message-ID: Date: Sun, 03 Dec 2017 01:48:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1511195683-2055-1-git-send-email-simon.marchi@ericsson.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-12/txt/msg00053.txt.bz2 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