From patchwork Tue May 17 07:38:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 12305 Received: (qmail 122442 invoked by alias); 17 May 2016 07:38:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 122421 invoked by uid 89); 17 May 2016 07:38:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:10.66.254.1, Hx-languages-length:1223, HX-Received:sk:ae1mr52, 2016-05-17 X-HELO: mail-pa0-f68.google.com Received: from mail-pa0-f68.google.com (HELO mail-pa0-f68.google.com) (209.85.220.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 17 May 2016 07:38:22 +0000 Received: by mail-pa0-f68.google.com with SMTP id gh9so1021646pac.0 for ; Tue, 17 May 2016 00:38:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=Nzq2Tcpic2axaqKely+KXAVk2a/vJrJjkDsPlhzUBMA=; b=m68qrp+wf27l3NyODZwgWzHidWbRlxcJwGleX81ku1iM7/IkxIdU+CdC8wnB+VARb4 2b6pqTwd+ebB32go4d5+Y/YHDg6X6S4JPNiLMA9bPnvMr47nUbn61RhSNpNJgj5/SO6v IRJNNEG0WTF3PTAZANesMAyfpxpD87gBUttUYYR0Np5OxRSQ6a9qVmh5JphqGW/IT31e xjDI6Dr3dvPp+adcukF4S9GNNff3XOxP9g/PQVL3re27oGdFXnvPMJS9nY/PCNcK+ber xVxMjWtFQH5XF7uq1TxKGGndl+Yl+dq2U9OCRG46QB/m0ca/3UJ5oUu3Xh4fzM6lpgGN FyyA== X-Gm-Message-State: AOPr4FX/x8ymvBYe7VEOrzTZuoSPNJu0Rzf8f1F9YwkfbXALdgyh0Iv6z9IOrDMZ2rHzMA== X-Received: by 10.66.254.1 with SMTP id ae1mr52169325pad.32.1463470700873; Tue, 17 May 2016 00:38:20 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc113.osuosl.org. [140.211.9.71]) by smtp.gmail.com with ESMTPSA id w187sm2312275pfw.50.2016.05.17.00.38.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 May 2016 00:38:20 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH pushed] Use unsuspend_all_lwps Date: Tue, 17 May 2016 08:38:14 +0100 Message-Id: <1463470694-20107-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes This patch is to replace find_inferior (&all_threads, unsuspend_one_lwp, NULL) with unsuspend_all_lwps (NULL), which is shorter. They are equivalent to each other. gdb/gdbserver: 2016-05-17 Yao Qi * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps instead of find_inferior. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f05144a..8b37925 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2016-05-17 Yao Qi + + * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps + instead of find_inferior. + 2016-05-05 Yao Qi * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 8e1e2fc..81134b0 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2966,7 +2966,7 @@ linux_stabilize_threads (void) } } - find_inferior (&all_threads, unsuspend_one_lwp, NULL); + unsuspend_all_lwps (NULL); stabilizing_threads = 0;