From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 383 invoked by alias); 3 May 2012 13:13:06 -0000 Received: (qmail 32519 invoked by uid 22791); 3 May 2012 13:13:04 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,KHOP_THREADED,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; Thu, 03 May 2012 13:12:50 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SPvpo-0005LK-R8 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 03 May 2012 06:12:40 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 3 May 2012 06:12:40 -0700 Received: from localhost.localdomain (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Thu, 3 May 2012 06:12:31 -0700 From: Yao Qi To: Subject: [PATCH 05/14] Support in linux-nat target. Date: Thu, 03 May 2012 13:13:00 -0000 Message-ID: <1336050869-29605-6-git-send-email-yao@codesourcery.com> In-Reply-To: <1336050869-29605-1-git-send-email-yao@codesourcery.com> References: <1336050869-29605-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-05/txt/msg00069.txt.bz2 gdb: 2012-04-12 Pedro Alves * linux-nat.c (linux_nat_is_non_stop_p): New. (linux_nat_add_target): Install linux_nat_is_non_stop_p. --- gdb/linux-nat.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index a96a73c..265d0b2 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4912,6 +4912,12 @@ linux_nat_supports_non_stop (void) return 1; } +static int +linux_nat_is_non_stop_p (void) +{ + return 1; +} + /* True if we want to support multi-process. To be removed when GDB supports multi-exec. */ @@ -5227,6 +5233,7 @@ linux_nat_add_target (struct target_ops *t) t->to_can_async_p = linux_nat_can_async_p; t->to_is_async_p = linux_nat_is_async_p; t->to_supports_non_stop = linux_nat_supports_non_stop; + t->to_is_non_stop_p = linux_nat_is_non_stop_p; t->to_async = linux_nat_async; t->to_terminal_inferior = linux_nat_terminal_inferior; t->to_terminal_ours = linux_nat_terminal_ours; -- 1.7.0.4