From patchwork Wed Sep 30 18:25:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 8894 Received: (qmail 71151 invoked by alias); 30 Sep 2015 18:25:17 -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 70594 invoked by uid 89); 30 Sep 2015 18:25:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 30 Sep 2015 18:25:09 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id B3F0577 for ; Wed, 30 Sep 2015 18:25:07 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8UIP6Ew004194 for ; Wed, 30 Sep 2015 14:25:07 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed] x86/Linux: reenable all-stop on top of non-stop Date: Wed, 30 Sep 2015 19:25:06 +0100 Message-Id: <1443637506-29442-1-git-send-email-palves@redhat.com> Since the record-btrace target now supports non-stop mode, we no longer need to force-disable as-ns on x86. gdb/ChangeLog: 2015-09-30 Pedro Alves * linux-nat.c (linux_nat_always_non_stop_p): Always return 1. * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete. (x86_linux_create_target): Don't install x86_linux_always_non_stop_p. --- gdb/ChangeLog | 7 +++++++ gdb/linux-nat.c | 2 -- gdb/x86-linux-nat.c | 11 ----------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2c2aa9e..688aef7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2015-09-30 Pedro Alves + + * linux-nat.c (linux_nat_always_non_stop_p): Always return 1. + * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete. + (x86_linux_create_target): Don't install + x86_linux_always_non_stop_p. + 2015-09-30 Don Breazeal * remote.c (remote_parse_stop_reply): Call strprefix instead diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 6423ecc..eb9f5bb 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4582,8 +4582,6 @@ linux_nat_supports_non_stop (struct target_ops *self) static int linux_nat_always_non_stop_p (struct target_ops *self) { - if (linux_ops->to_always_non_stop_p != NULL) - return linux_ops->to_always_non_stop_p (linux_ops); return 1; } diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c index fa5ef30..d8a188f 100644 --- a/gdb/x86-linux-nat.c +++ b/gdb/x86-linux-nat.c @@ -351,15 +351,6 @@ x86_linux_get_thread_area (pid_t pid, void *addr, unsigned int *base_addr) } -/* to_always_non_stop_p implementation. */ - -static int -x86_linux_always_non_stop_p (struct target_ops *self) -{ - /* Enabling this breaks the btrace target. */ - return 0; -} - /* Create an x86 GNU/Linux target. */ struct target_ops * @@ -392,8 +383,6 @@ x86_linux_create_target (void) t->to_read_btrace = x86_linux_read_btrace; t->to_btrace_conf = x86_linux_btrace_conf; - t->to_always_non_stop_p = x86_linux_always_non_stop_p; - return t; }