From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21553 invoked by alias); 26 Sep 2008 23:24:01 -0000 Received: (qmail 21543 invoked by uid 22791); 26 Sep 2008 23:24:00 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 26 Sep 2008 23:23:08 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m8QNN5u7020959; Fri, 26 Sep 2008 19:23:05 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8QNN4ve001579; Fri, 26 Sep 2008 19:23:05 -0400 Received: from opsy.redhat.com (vpn-10-95.bos.redhat.com [10.16.10.95]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m8QNN33P024546; Fri, 26 Sep 2008 19:23:04 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 47F4737824E; Fri, 26 Sep 2008 17:22:05 -0600 (MDT) To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFA/Ada] Implement Ada tasking support (take 2) References: <20080924174850.GC3607@adacore.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Fri, 26 Sep 2008 23:24:00 -0000 In-Reply-To: <20080924174850.GC3607@adacore.com> (Joel Brobecker's message of "Wed\, 24 Sep 2008 10\:48\:50 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2008-09/txt/msg00534.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Joel> However, I think we ought to be consistent about this - I tried Joel> searching for other language-specific commands, and indeed, Joel> objc-lang defines "info selectors", "info classes", etc. For "selectors", I don't know; but "info classes" seems like an odd name for an ObjC-specific command. Lots of languages have classes. The language-specific "catch" subcommands are also a bit odd, to me. Joel> Tom suggested a different syntax, which is based on using Joel> convenience functions in the condition field. Joel> break LINESPEC if $current_ada_task() == 5 Joel> It's an interesting suggestion, and I'm not opposed. I'm just Joel> slightly concerned that the performance cost of evaluating Joel> a condition expression is higher than just a pure check Joel> directly coded in GDB. It's also different from what is done Joel> for threads. I doubt the overhead is very high, but we can discuss that later if you want. It isn't relevant to the current patch :-) I thought I heard an argument to the effect that thread-specificity could be more efficiently implemented at a low level, at least in theory, on some platforms. (I don't know. And that is mighty vague.) If this idea applied to task-specific breakpoints then that would be an argument in favor of putting it in the core, at least IMO. Tom