From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway22.websitewelcome.com (gateway22.websitewelcome.com [192.185.47.65]) by sourceware.org (Postfix) with ESMTPS id 19D6C3896C13 for ; Mon, 8 Feb 2021 19:46:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 19D6C3896C13 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 0889B31F75 for ; Mon, 8 Feb 2021 13:45:59 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 9CTulXl9Esvw99CTuldGML; Mon, 08 Feb 2021 13:45:58 -0600 X-Authority-Reason: nr=8 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=XneZXlbc5Ugl3e+mZdba0opPRKCyQy0IiskAipUEDUo=; b=krnCxJLc91NBHHqvOkt+Ki2Dtl DA3gcmUqtUBHw3gYCZ/C7EI19n4vEauxWfjZj1mShCv+MB1exAHBvrEITqkGYYVsEAfQeAmOrPFtp tGG5C7Ey7H6NGhVpzaOEkcdsv; Received: from 97-122-91-54.hlrn.qwest.net ([97.122.91.54]:37154 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l9CTu-001Vdk-Ml; Mon, 08 Feb 2021 12:45:58 -0700 From: Tom Tromey To: Mike Frysinger via Gdb-patches Subject: Re: [PATCH 0/3] [RFC] sim: framework for self-declaring initializers References: <20210208040833.7455-1-vapier@gentoo.org> X-Attribution: Tom Date: Mon, 08 Feb 2021 12:45:58 -0700 In-Reply-To: <20210208040833.7455-1-vapier@gentoo.org> (Mike Frysinger via Gdb-patches's message of "Sun, 7 Feb 2021 23:08:30 -0500") Message-ID: <87o8gufimh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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.91.54 X-Source-L: No X-Exim-ID: 1l9CTu-001Vdk-Ml X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-91-54.hlrn.qwest.net (murgatroyd) [97.122.91.54]:37154 X-Source-Auth: tom+tromey.com X-Email-Count: 15 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3029.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Mon, 08 Feb 2021 19:46:10 -0000 >>>>> "Mike" == Mike Frysinger via Gdb-patches writes: Mike> This is the rough basis for it with a few modules converted over as Mike> an example. I couldn't find much info in the GDB side to show that Mike> this is the wrong direction to go. Feedback welcome. The main issue on the gdb side has been that, very rarely, an ordering dependency has crept in. The most recent one I recall is that I ran across an internal test case at AdaCore where the results were dependent on the order in which callbacks were added to an observer. As a result of this, in gdb a few things are explicitly initialized before the generic initializations are done. This also explains an obscure hack in the CLI command registration code, namely why the various *list variables are globals. Aside from that, IMO this system has been fine. Tom