From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61841 invoked by alias); 6 Jun 2017 12:41:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 61820 invoked by uid 89); 6 Jun 2017 12:41:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Jun 2017 12:41:24 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 03AD081247; Tue, 6 Jun 2017 12:41:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 03AD081247 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 03AD081247 Received: from [10.36.117.224] (ovpn-117-224.ams2.redhat.com [10.36.117.224]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B0D771D4D; Tue, 6 Jun 2017 12:41:24 +0000 (UTC) Subject: Re: [RFC 0/5] xtensa: support dynamic configuration To: Max Filippov , binutils@sourceware.org, gdb-patches@sourceware.org Cc: Sterling Augustine , David Weatherford , Maxim Grigoriev , Woody LaRue References: <1495487553-19078-1-git-send-email-jcmvbkbc@gmail.com> From: Nick Clifton Message-ID: <35e4d259-0fcd-520a-51c3-ee7496c303e6@redhat.com> Date: Tue, 06 Jun 2017 12:41:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <1495487553-19078-1-git-send-email-jcmvbkbc@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-06/txt/msg00139.txt.bz2 Hi Max, > Built toolchain takes configuration > parameters from the shared object specified in the environment variable. Using environment variables to pass configuration information is a bad idea. The problem is that it can be very hard to debug problems when environment variables are involved. Often they are not included in bug reports, which makes reproducing the problem tricky. At the very least you should also provide a command line option which specifies the path to a file containing the configuration information. If specified this option should override the environment variable. There is also the issue of versioning to consider. Does the configuration information contain a version number ? What happens if the configuration information is out of date with respect to the compiler/linker or if the tools are older than the configuration information ? Cheers Nick