From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115520 invoked by alias); 19 May 2017 13:51:15 -0000 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 Received: (qmail 115506 invoked by uid 89); 19 May 2017 13:51:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*schwab X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 May 2017 13:51:13 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 5833892DCB; Fri, 19 May 2017 09:51:15 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zQFSWftJPEV5; Fri, 19 May 2017 09:51:15 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 1824592DCA; Fri, 19 May 2017 09:51:15 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 570EB80322; Fri, 19 May 2017 06:51:13 -0700 (PDT) Date: Fri, 19 May 2017 13:51:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: Andreas Schwab , gdb-patches@sourceware.org Subject: Re: [RFA] Use watchpoint's language when re-parsing expression Message-ID: <20170519135113.agxaih5pcdeew3co@adacore.com> References: <20170518023916.19913-1-tom@tromey.com> <8760gxc07m.fsf@pokyo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8760gxc07m.fsf@pokyo> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2017-05/txt/msg00446.txt.bz2 > Andreas> The docs say that gdb is supposed to support C style casts in every > Andreas> language. Also, there is the {type} operator that is also supported in > Andreas> every language. [...] > Finally, I'm not at all certain that C-style casts or the {type} > operator can be added to the Rust expression parser without breaking > something else. And, that seems like a complex request just to unbreak > what amount to an implementation detail. FWIW, I also never noticed this, and I share the concerns about making this a requirement for all languages. It really depends on the language itself whether it's easy to implement such feature, and I would hate for language parsers to be harder to maintain just so we can provide a bit of a C-centric view to every language we support. I vote for downgrading the requirement and amending the documentation instead. -- Joel