From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by sourceware.org (Postfix) with ESMTPS id 3D5C53858D3C for ; Wed, 30 Mar 2022 13:15:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3D5C53858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f41.google.com with SMTP id u16so29254303wru.4 for ; Wed, 30 Mar 2022 06:15:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=XC3zyLiFC4/0ZQDzcS0fUTIoC1w3aHSZ2e3j7ti0XB0=; b=dqeNJ9TfaNZmQCaQujiCS8+rwWxHGFihiwl4T3c4L6bjkMavuS/KO8X2ZpObiuCCGD j7qj6JVras11HcFL9lm+G4BI04PqhA7eB2mKWxYo5qXRWJafUtoTquEMtv6m1LR7oIDD BgMTLnxhf+tuP73vP0GehAEM0LknHjHaOIT9mj5+sogrKM7ROMOK3Y3+Zym4Pl23BI+p N6repPWDiwlc2/lytH3nAN/OJyjyS5PY68eRy5ln2BZMTfEGR8WdosJwYA/QzV0jdPq9 fRdANLyMNuRqlUTtqXDVLrAY0/rH25lhn4G2/avwWNIm63m1cNF/Uht1qSWMqagb2nyV eL9A== X-Gm-Message-State: AOAM531zkQ2yJXAtgorIFK68PxfDyfmy4CXWmKMI2pMoN8+l0pU8Wj5r 2OpEgS/Vt7Ad+AhzqCvh0Ko= X-Google-Smtp-Source: ABdhPJzdv2fHruNhFP3m+1RTcbvZiytCDbKDhmZS/yHiJeRP7gNIB5WTCddctWdtHvW1rj9Vo/cVXg== X-Received: by 2002:adf:eb08:0:b0:205:e198:e39a with SMTP id s8-20020adfeb08000000b00205e198e39amr111970wrn.553.1648646143266; Wed, 30 Mar 2022 06:15:43 -0700 (PDT) Received: from ?IPV6:2001:8a0:f924:2600:209d:85e2:409e:8726? ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id c11-20020a05600c0a4b00b0037c91e085ddsm5828495wmq.40.2022.03.30.06.15.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Mar 2022 06:15:42 -0700 (PDT) Message-ID: <94f11eb5-00c4-d3f4-6ca3-400ffc454755@palves.net> Date: Wed, 30 Mar 2022 14:15:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 7/8] GDB: Add a character string limiting option Content-Language: en-US To: "Maciej W. Rozycki" , Tom Tromey Cc: simonsobisch@web.de, Andrew Burgess , gdb-patches@sourceware.org References: <83o82eewgh.fsf@gnu.org> <83mthye2yu.fsf@gnu.org> <874k45g246.fsf@tromey.com> From: Pedro Alves In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2022 13:15:46 -0000 On 2022-03-30 11:38, Maciej W. Rozycki wrote: > > Though I'd yet have to figure out how to use the syntax quoted in NEWS in > a meaningful manner, and an artificial program may also be required, > because: > > (gdb) print L"foobar" > No type named wchar_t. > (gdb) print u"foobar" > No type named char16_t. > (gdb) print U"foobar" > No type named char32_t. > (gdb) > > though I guess the data types do not actually have to be system-supplied, > and it will be enough if they are reasonably defined. It will work without a program if you switch to C++ beforehand, with "set language c++", because wchar_t/char16_t/char32_t are built-in types in C++.