From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21661 invoked by alias); 17 Dec 2011 03:00:27 -0000 Received: (qmail 21642 invoked by uid 22791); 17 Dec 2011 03:00:26 -0000 X-SWARE-Spam-Status: Yes, hits=6.3 required=5.0 tests=AWL,BAYES_00,BOTNET,FROM_12LTRDOM,RCVD_IN_BRBL_LASTEXT,RDNS_DYNAMIC X-Spam-Check-By: sourceware.org Received: from bl16-10-144.dsl.telepac.pt (HELO localhost6.localdomain6) (188.81.10.144) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Dec 2011 03:00:12 +0000 Received: from localhost6.localdomain6 (localhost.localdomain [127.0.0.1]) by localhost6.localdomain6 (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id pBH305D2022813 for ; Sat, 17 Dec 2011 03:00:05 GMT Subject: [RFC/WIP PATCH v2 11/12] Default the current itset to the current inferior set (curset). To: gdb-patches@sourceware.org From: Pedro Alves Date: Sat, 17 Dec 2011 03:00:00 -0000 Message-ID: <20111217030005.22456.90528.stgit@localhost6.localdomain6> In-Reply-To: <20111217025904.22456.50717.stgit@localhost6.localdomain6> References: <20111217025904.22456.50717.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: 2011-12/txt/msg00556.txt.bz2 This goes hand-in-hand with the next patch. So far, we default to "all". And, the "set schedule-multiple" is "off" by default. This means, that in some cases that "all" isn't really "all", but the inferior of the selected thread only. This is confusing. If by default we only focus on the current inferior, then we can flip the schedule-multiple setting to on, meaning, resume all inferiors in the focus, and so the schedule-multiple setting isn't really required anymore. --- gdb/itset.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/itset.c b/gdb/itset.c index dfa2c5f..d65cc37 100644 --- a/gdb/itset.c +++ b/gdb/itset.c @@ -2513,7 +2513,7 @@ _initialize_itset (void) make_internal_itset (stopped_itset, "stopped"); make_internal_itset (curinf_itset, "curinf"); - current_itset = itset_reference (all_itset); + current_itset = itset_reference (curinf_itset); add_com ("itfocus", no_class, itfocus_command, _("\ Change the set of current inferiors/threads."));