From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19900 invoked by alias); 18 Sep 2012 09:49:20 -0000 Received: (qmail 19814 invoked by uid 22791); 18 Sep 2012 09:49:17 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_QX X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Sep 2012 09:48:57 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TDuQK-0005Y1-W4 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 18 Sep 2012 02:48:57 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 18 Sep 2012 02:48:56 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Tue, 18 Sep 2012 02:48:55 -0700 From: Yao Qi To: Subject: [PATCH 2/2] gdbserver:Remove async from target_ops Date: Tue, 18 Sep 2012 09:49:00 -0000 Message-ID: <1347961672-18495-3-git-send-email-yao@codesourcery.com> In-Reply-To: <1347961672-18495-1-git-send-email-yao@codesourcery.com> References: <1347961672-18495-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes 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 X-SW-Source: 2012-09/txt/msg00350.txt.bz2 Hi, After patch 1/2 is applied, 'target_async' is not used in common code any more, this patch is to clean up. gdb/gdbserver: 2012-09-18 Yao Qi * target.h (struct target_ops) : Remove. (target_async): Remove macro. * linux-low.c (linux_target_ops): Update. * lynx-low.c (lynx_target_ops): Update. * nto-low.c (nto_target_ops): Update. * win32-low.c (win32_target_ops): Update. --- gdb/gdbserver/linux-low.c | 1 - gdb/gdbserver/lynx-low.c | 1 - gdb/gdbserver/nto-low.c | 1 - gdb/gdbserver/target.h | 7 ------- gdb/gdbserver/win32-low.c | 1 - 5 files changed, 0 insertions(+), 11 deletions(-) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index faed578..f4d9a7d 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -5823,7 +5823,6 @@ static struct target_ops linux_target_ops = { linux_qxfer_osdata, linux_xfer_siginfo, linux_supports_non_stop, - linux_async, linux_start_non_stop, linux_supports_multi_process, #ifdef USE_THREAD_DB diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 2c7ab6e..38029b8 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -755,7 +755,6 @@ static struct target_ops lynx_target_ops = { NULL, /* qxfer_osdata */ NULL, /* qxfer_siginfo */ NULL, /* supports_non_stop */ - NULL, /* async */ NULL, /* start_non_stop */ NULL, /* supports_multi_process */ NULL, /* handle_monitor_command */ diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 73618cd..1a0f5c4 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -933,7 +933,6 @@ static struct target_ops nto_target_ops = { NULL, /* nto_qxfer_osdata */ NULL, /* xfer_siginfo */ nto_supports_non_stop, - NULL, /* async */ NULL /* start_non_stop */ }; diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index 9f96e04..6b60e13 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -292,10 +292,6 @@ struct target_ops int (*supports_non_stop) (void); - /* Enables async target events. Returns the previous enable - state. */ - int (*async) (int enable); - /* Switch to non-stop (1) or all-stop (0) mode. Return 0 on success, -1 otherwise. */ int (*start_non_stop) (int); @@ -432,9 +428,6 @@ int kill_inferior (int); #define target_supports_non_stop() \ (the_target->supports_non_stop ? (*the_target->supports_non_stop ) () : 0) -#define target_async(enable) \ - (the_target->async ? (*the_target->async) (enable) : 0) - #define target_supports_multi_process() \ (the_target->supports_multi_process ? \ (*the_target->supports_multi_process) () : 0) diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index 4d5fe67..cbdf656 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -1806,7 +1806,6 @@ static struct target_ops win32_target_ops = { NULL, /* qxfer_osdata */ NULL, /* qxfer_siginfo */ NULL, /* supports_non_stop */ - NULL, /* async */ NULL, /* start_non_stop */ NULL, /* supports_multi_process */ NULL, /* handle_monitor_command */ -- 1.7.7.6