From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70546 invoked by alias); 18 May 2017 07:37:57 -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 70517 invoked by uid 89); 18 May 2017 07:37:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=truly X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 May 2017 07:37:54 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 83901AB9D; Thu, 18 May 2017 07:37:55 +0000 (UTC) From: Andreas Schwab To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Use watchpoint's language when re-parsing expression References: <20170518023916.19913-1-tom@tromey.com> X-Yow: FIRST, I was in a TRUCK...THEN, I was in a DINER... Date: Thu, 18 May 2017 07:37:00 -0000 In-Reply-To: <20170518023916.19913-1-tom@tromey.com> (Tom Tromey's message of "Wed, 17 May 2017 20:39:16 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-05/txt/msg00408.txt.bz2 On Mai 17 2017, Tom Tromey wrote: > So, in the end I made a hook to let each language choose what > expression to use. I made all the languages other than Rust use the C > expression, because that is the status quo ante. However, this is > probably not truly correct. After this patch, at least, it is easy to > correct by someone who knows the language(s) in question. The docs say that gdb is supposed to support C style casts in every language. Also, there is the {type} operator that is also supported in every language. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."