From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19817 invoked by alias); 18 Sep 2012 09:49:17 -0000 Received: (qmail 19807 invoked by uid 22791); 18 Sep 2012 09:49:16 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL 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:52 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TDuQF-0005Xs-Vj from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 18 Sep 2012 02:48:52 -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:51 -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:50 -0700 From: Yao Qi To: Subject: [RFC 0/2, gdbserver] Set linux target in async mode in default Date: Tue, 18 Sep 2012 09:49:00 -0000 Message-ID: <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/msg00349.txt.bz2 Hi, When writing the V2 of 'A general notification in GDB RSP' patch series, I find async mode isn't turned on unless non-stop mode is turned on. After I generalize 'async notification' and support both non-stop and all-stop, it is required to turn async on even in all-stop mode. Async can be regarded as an infrastructure in linux target to serve for other functionalities, such as 'notification' and 'non-stop'. This is what patch 1/2 tries to do. Regression tested on x86_64-linux with boardfile ntaive-gdbserver and native-extended-gdbserver. After patch 1/2 is applied, target_async is not used in common code, so patch 2/2 is to remove macro target_async and field 'async' in struct 'target_ops' as a cleanup.