From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19107 invoked by alias); 22 May 2018 14:15: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 19087 invoked by uid 89); 22 May 2018 14:15:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=1.6 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,GARBLED_BODY,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=discussions, =e5=af=ab=e9, HContent-Transfer-Encoding:8bit?= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 May 2018 14:15:49 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D1CE54026105; Tue, 22 May 2018 14:15:45 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB67010E51BE; Tue, 22 May 2018 14:15:44 +0000 (UTC) Subject: Re: support C/C++ identifiers named with non-ASCII characters To: =?UTF-8?B?5by15L+K6Iqd?= , Simon Marchi , gdb-patches@sourceware.org References: <9418d4f0-f22a-c587-cc34-2fa67afbd028@zjz.name> <8c8af079-dbb8-207b-5edf-86b99e9f5db8@simark.ca> <1b915196-3e97-4892-7426-be4211fe7889@zjz.name> <32da087b-da41-7414-3a56-f2e4587fe287@zjz.name> From: Pedro Alves Message-ID: <253bd3ae-5c38-0c01-6e51-f59fc17b781d@redhat.com> Date: Tue, 22 May 2018 14:39:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <32da087b-da41-7414-3a56-f2e4587fe287@zjz.name> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2018-05/txt/msg00554.txt.bz2 On 05/21/2018 06:45 PM, 張俊芝 wrote: >> >> >> Simon Marchi 於 2018/5/21 下午10:03 寫道: >>> Could you please write a small test case in testsuite/gdb.base with the example >>> you gave, so we make sure this doesn't get broken later?  If you can write it >>> in such a way that both clang and gcc understand it would be better, because >>> most people run the testuite using gcc to compile test programs. >>> > Oops, sorry, Simon, I forgot the test part in the second upload. > > Clang is compatible with the GCC workaround \uXXXX. So I will write the test case in that format. > > But it's late here, I will do it tomorrow. I actually already started writing a patch for this a few months back, including a C testcase, after these discussions: https://sourceware.org/ml/gdb-patches/2017-11/msg00428.html https://sourceware.org/ml/gdb/2017-11/msg00022.html Let me try to find it. I don't recall exactly where I left off, but I think I had something working. Thanks, Pedro Alves