From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by sourceware.org (Postfix) with ESMTPS id 1AB033858C2C for ; Thu, 14 Apr 2022 13:17:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1AB033858C2C Received: by mail-io1-xd2c.google.com with SMTP id p21so5326123ioj.4 for ; Thu, 14 Apr 2022 06:17:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=hzDmdV7ESRcwh7rcnKVSKhGBLrTPk7e+kDNo+sFvBTw=; b=2GPC1v7tAhib6I8WwzRVieu5Yo4F9S7La/QuQ3d4ts3xfkEZhyaGav/6bvENflaJk/ kWMhySQ97wRTKp9lul9Xdz8p5fs8HrN+ojK0+xbtMvmvC3EO7FMcw59/ThoC5sk9R4xZ RkDGS0OeO66VuAjXzbupubyh10ZIAyQSjf6+3IpbHEac//7fzkoeYEgp5H7FFKP51tY2 +Yi3+Xkdqtno3fEl6fxhUGFoZemXErCsmqtdVYXQVIr/YjfDA1ooc65zuGhIw40Cl+Ho h+iRbXHs8Zbyt8q1HP3BrW8o7y4uqkDj234ydRJoark4NkMtKuaiTDBlsNOofXs+8740 XwxQ== X-Gm-Message-State: AOAM530Biaa/RZ+I2LTE3cwFKvE/mXwyOOyngEbu6rZpFjqtjCadU577 1dKp7Fh51BV40UwHkoUEaVx0dziWHO6NXA== X-Google-Smtp-Source: ABdhPJxWuoQ6s3trVAT6/rvHjE35F01JLl31FeBpxfM0rWfp0/QxYTc7sTCjLURlM5s8JeExtIS7iQ== X-Received: by 2002:a5e:990b:0:b0:645:e9e5:3a9b with SMTP id t11-20020a5e990b000000b00645e9e53a9bmr1123862ioj.164.1649942235395; Thu, 14 Apr 2022 06:17:15 -0700 (PDT) Received: from murgatroyd (71-211-154-204.hlrn.qwest.net. [71.211.154.204]) by smtp.gmail.com with ESMTPSA id y10-20020a92c74a000000b002caca951762sm1056597ilp.19.2022.04.14.06.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 06:17:14 -0700 (PDT) From: Tom Tromey To: Eli Zaretskii Cc: tromey@adacore.com, gdb-patches@sourceware.org Subject: Re: [PATCH 9/9] Use GetThreadDescription on Windows References: <20220413191756.1146768-1-tromey@adacore.com> <20220413191756.1146768-10-tromey@adacore.com> <834k2w4w3w.fsf@gnu.org> <8335ig44nm.fsf@gnu.org> X-Attribution: Tom Date: Thu, 14 Apr 2022 07:17:13 -0600 In-Reply-To: <8335ig44nm.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Apr 2022 08:26:05 +0300") Message-ID: <87sfqf3iue.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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: Thu, 14 Apr 2022 13:17:17 -0000 >>>>> "Eli" == Eli Zaretskii writes: >> AFAIK, wcstombs_s is only available since Vista, so I think we need a >> configure-time test for that, and use wcstombs as fallback. Eli> On second thought, it should be a run-time test, so that the binary Eli> doesn't depend too much on the system where it was built. Or maybe Eli> just use wcstombs always? Yeah, I'm going to do that. Is pre-Vista support needed? I don't really know what versions of Windows gdb is intended to support, but the web tells me that Vista itself was de-supported by MS 5 years ago. So surely pre-Vista stuff must be extra obsolete. Wikipedia says Vista is in use by 0.18% of PCs. Tom