From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3510 invoked by alias); 25 Jan 2016 12:32:27 -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 3499 invoked by uid 89); 25 Jan 2016 12:32:26 -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=noop, no-op, Didnt, Didn't X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 25 Jan 2016 12:32:24 +0000 Received: by mail-pa0-f52.google.com with SMTP id yy13so80164951pab.3 for ; Mon, 25 Jan 2016 04:32:24 -0800 (PST) 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=+T1iFmRat+tnjE1L2DGZLq8GO2+kpPCjQQxsKrARmEE=; b=B/av+9ptfUIpUG6zezPYuOTCLLeBYfFKmifOWVY0Sqkm7AxLt3gECg7UKUbeM/RTeQ oXzrFrjxL3eVY3sDIeGPAZq39S7NPCE4eVkmjwRYAn4GZVEq4JA4lzPfSpTAvS75rAng UMoO4R4aGJB+VSNOXdL8/5Gsbh/VaghmwRFdF20YWeXJmcSxKRNT8S23vXjyxn2W5Mab QbWlyoYnEywlNwtMdpcahkS4nW9lBIf1A4/8ckpsFV6VmvNppu0cRUtvhUHksM5M8Y1R Puwh1Oq8h2FXaWupZaMhRNf90Q80avp6EegzH9S3HDhSXWj7OTh1/6GJxRCX2m2wHLSe uIzA== X-Gm-Message-State: AG10YOSdp0udnCfnAj6aIQVtONEMrd4meWAi6i6vbbvKLTYs/yEHQr32GMR48SgBrZB0Sg== X-Received: by 10.66.230.201 with SMTP id ta9mr25483309pac.52.1453725143022; Mon, 25 Jan 2016 04:32:23 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id yh5sm28490797pab.13.2016.01.25.04.32.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jan 2016 04:32:22 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Remove new_thread_notify and dead_thread_notify Date: Mon, 25 Jan 2016 12:32:00 -0000 Message-Id: <1453725136-713-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00618.txt.bz2 They were added by PATCH: Multithreaded debugging for gdbserver https://sourceware.org/ml/gdb-patches/2002-06/msg00157.html but as a no-op, and the last usage of them was removed by [gdbserver/RFC/RFA] Implement multiprocess extensions, add linux multiproces support. https://sourceware.org/ml/gdb-patches/2009-03/msg00667.html This patch is to remove them. Didn't run regression test because this patch removes dead code. gdb/gdbserver: 2016-01-25 Yao Qi * remote-utils.c (new_thread_notify): Remove. (dead_thread_notify): Likewise. * remote-utils.h (new_thread_notify): Remove declaration. (dead_thread_notify): Likewise. --- gdb/gdbserver/remote-utils.c | 33 --------------------------------- gdb/gdbserver/remote-utils.h | 2 -- 2 files changed, 35 deletions(-) diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 15cdbe1..292197a 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -1084,39 +1084,6 @@ outreg (struct regcache *regcache, int regno, char *buf) } void -new_thread_notify (int id) -{ - char own_buf[256]; - - /* The `n' response is not yet part of the remote protocol. Do nothing. */ - if (1) - return; - - if (server_waiting == 0) - return; - - sprintf (own_buf, "n%x", id); - disable_async_io (); - putpkt (own_buf); - enable_async_io (); -} - -void -dead_thread_notify (int id) -{ - char own_buf[256]; - - /* The `x' response is not yet part of the remote protocol. Do nothing. */ - if (1) - return; - - sprintf (own_buf, "x%x", id); - disable_async_io (); - putpkt (own_buf); - enable_async_io (); -} - -void prepare_resume_reply (char *buf, ptid_t ptid, struct target_waitstatus *status) { diff --git a/gdb/gdbserver/remote-utils.h b/gdb/gdbserver/remote-utils.h index 32933f5..2ddf590 100644 --- a/gdb/gdbserver/remote-utils.h +++ b/gdb/gdbserver/remote-utils.h @@ -44,8 +44,6 @@ void initialize_async_io (void); void enable_async_io (void); void disable_async_io (void); void check_remote_input_interrupt_request (void); -void new_thread_notify (int id); -void dead_thread_notify (int id); void prepare_resume_reply (char *buf, ptid_t ptid, struct target_waitstatus *status); -- 1.9.1