From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gproxy4-pub.mail.unifiedlayer.com (gproxy4-pub.mail.unifiedlayer.com [69.89.23.142]) by sourceware.org (Postfix) with ESMTPS id 4B303385800C for ; Tue, 25 Oct 2022 19:42:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4B303385800C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from cmgw14.mail.unifiedlayer.com (unknown [10.0.90.129]) by progateway6.mail.pro1.eigbox.com (Postfix) with ESMTP id 78A4D10049300 for ; Tue, 25 Oct 2022 19:42:27 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id nPogo3WiVoMaxnPoho7T9N; Tue, 25 Oct 2022 19:42:27 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=X4CXlEfe c=1 sm=1 tr=0 ts=63583c23 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=Qawa6l4ZSaYA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=CCpqsmhAAAAA:8 a=TxfUCZcd4tQqSKfVESsA:9 a=CNNwC-rut3UA:10:demote_hacked_domain_1 a=66zSKFQpzMcA:10:demote_shortener_domain_2 a=a15MO3L22t3-2D0b4mJD:22 a=ul9cdbp4aOFLsgKbc677:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=z3cFa7X3iNYNftHrCqr8ZtFIVikGHayVtuDjQeP9ebM=; b=GesLktSN8xto6b+jZtMhh1go+K Lr6lPJgtziiEK4MPrVlN00wkf8AxYX8QLvNCdjIjKAnZ1fLuqdBpTglTnZ4pmj9uT9s2vJOXVINtB 9qnXb2Qaj8h83xSVlRsOXvQJM; Received: from 97-122-76-186.hlrn.qwest.net ([97.122.76.186]:59138 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1onPof-0045It-EG; Tue, 25 Oct 2022 13:42:25 -0600 From: Tom Tromey To: Tsukasa OI Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] sim, sim/m32c, sim/rl78: Use getopt_long References: <3b7e769f-b5e9-4049-786f-d00d997f0280@irq.a4lg.com> <24e83e920d728237c4efe6f4720643d6fbbf1084.1666113214.git.research_trasio@irq.a4lg.com> <87sfjhb0r5.fsf@tromey.com> <2024f524-35e3-cdc6-8098-a220daf30c23@irq.a4lg.com> <87y1t3c08e.fsf@tromey.com> <45f95875-667a-3f63-db4c-2d135cb9bfe9@irq.a4lg.com> X-Attribution: Tom Date: Tue, 25 Oct 2022 13:42:22 -0600 In-Reply-To: <45f95875-667a-3f63-db4c-2d135cb9bfe9@irq.a4lg.com> (Tsukasa OI's message of "Wed, 26 Oct 2022 02:17:10 +0900") Message-ID: <87mt9jbsgx.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-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.76.186 X-Source-L: No X-Exim-ID: 1onPof-0045It-EG X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-76-186.hlrn.qwest.net (prentzel) [97.122.76.186]:59138 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3022.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > I've described it in the commit message of PATCH v2. > I see, thank you. This makes me appreciate your view better. libiberty is funny because it requires certain configure checks and definitions but doesn't provide a simple way to do them. gdb has libiberty.m4 but it is incomplete -- for example it doesn't do this getopt check. Something more robust would probably end up looking like gnulib... which does have a getopt module, but which we don't use. (And binutils doesn't use gnulib at all.) Anyway. Switching to getopt_long seems like a fine workaround. Programs should be using it anyway so that --help and --version can be implemented. Tom