Re: support C/C++ identifiers named with non-ASCII characters

Pedro Alves
2018-05-22T14:15:57Z

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