From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2NriJKyA/F9fHgAAWB0awg (envelope-from ) for ; Mon, 11 Jan 2021 11:45:32 -0500 Received: by simark.ca (Postfix, from userid 112) id 876811EEEF; Mon, 11 Jan 2021 11:45:32 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9C47B1E4F4 for ; Mon, 11 Jan 2021 11:45:30 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1001E38708D5; Mon, 11 Jan 2021 16:45:30 +0000 (GMT) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 020B9385802B for ; Mon, 11 Jan 2021 16:45:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 020B9385802B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wr1-x430.google.com with SMTP id i9so460303wrc.4 for ; Mon, 11 Jan 2021 08:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Gx9Pt9umQ4iDffJaxkvTG/0JM5AksVYgPbzJLVihlaw=; b=HjNlurHTWKtMimxsLK4yMs35U8cAxJrjx7PrKBmvI9aJuIlROlZ7wMqskBoD00emaB vnvfTEF3QGocIThosuYWDaI+vk70xpk7/+dcnRoASsWvBPbWwkJ8BjVe9J5AEFEgUe6R UEF/Tc98vg6GZiOoXvqikHEui9/NQQ8ogAKUvcGGVOslPOdvYNj6qQBbMW72ZTlp5VP4 BCVYaHasdeOzLRaNWc9/6Hvj4me8hfy8NRlmSdyVgMz95Hc4supwmigpInxDJ/G2yp95 awJYJt5tykjxWTA1DXytoo9PBanwMpOtlYp5WLDhPKOUFiw4OitrBJjJKz8YubFaR/Vl Zwdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Gx9Pt9umQ4iDffJaxkvTG/0JM5AksVYgPbzJLVihlaw=; b=lWv97y8R5Fk2S0Lq2Nr4CRnWaJweLwojr04+2j5RvChjpekLA+nnxXHSfm1QcGS43h 5iqmGm1D7UyX57IbAG+TM6/V6tTpM56mHZDAY0B/ORpb0xOOLmodDaPQKChl13Cle+k4 Z40Sth1twNTBhAXTTAOHVsXi614JYNCsqfvnpE9MCFOqZYaUG7J1E7QYzcegtxL/LzH/ R0shcdg6Ps81mORZAJZW+zWP6KLrjYm5XXgd+h3Xi4Dd5OgLlpwhlSijHLxOl+ojxrEo Rq4GJSiwbqZyXcV4dScMGAkLLivInRbV7N7H03NWpVforyatx+ollhS3uO5KXeirdFFR ifhA== X-Gm-Message-State: AOAM530w2TtqbPhiPk+85cgDYCoTo6rscWo1cqmkJcFuFod0SF7jXHDc RWKkq0YIrhsDkkSNLevgPlC5ECjPUmoEpQ== X-Google-Smtp-Source: ABdhPJz8nnPN6tQmLLLmjGf6X/0hwd99iAP/rrKw98o1R0lSZ9oCqIez5A0WAdaHQ8lK5FdofOmX8A== X-Received: by 2002:adf:fe05:: with SMTP id n5mr15326wrr.9.1610383526088; Mon, 11 Jan 2021 08:45:26 -0800 (PST) Received: from localhost (host86-166-129-230.range86-166.btcentralplus.com. [86.166.129.230]) by smtp.gmail.com with ESMTPSA id x17sm214204wro.40.2021.01.11.08.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 08:45:25 -0800 (PST) Date: Mon, 11 Jan 2021 16:45:24 +0000 From: Andrew Burgess To: Tom Tromey Subject: Re: [PATCH 0/7] Adding startup files to GDB Message-ID: <20210111164524.GI1175365@embecosm.com> References: <87blgu13v4.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87blgu13v4.fsf@tromey.com> X-Operating-System: Linux/5.8.13-100.fc31.x86_64 (x86_64) X-Uptime: 16:40:26 up 33 days, 21:24, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] 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: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" * Tom Tromey [2020-10-22 13:02:07 -0600]: > Andrew> Patch #4 adds the startup file support. Compared to Tom's original work: > Andrew> (a) there's no auto saving of startup options, > > Andrew> (b) there's command line flag support for passing startup options > Andrew> to GDB. > > Andrew> (c) there's support for a home directory and current working > Andrew> directory startup file (only because this is basically free > Andrew> given the restructuring of the code). > > Andrew> Patch #5 adds back the auto-save feature from Tom's series, however, I > Andrew> have this off by default. I (personally) dislike the auto-save > Andrew> feature, though I can see why some users might want it. I hope the > Andrew> proposal I have here is might be a good middle ground. > > Could you say why you dislike it? > > The reason I did it the way I did is that I thought it was strange to > have a command like "set startup-blah-blah off" that would be useless to > use in a running gdb. It seemed to me that the name & intended use of > the command implied auto-saving. > > Regardless of the choice here, I don't think it makes sense to have > another option to control whether the first options are auto-saved. > This is "feature to enable a feature" territory for me. Tom, I don't really understand how "feature to enable a feature" is different from lots of the other features in GDB that have a feature (setting) to enable them. Are you just suggesting that auto-save should be on by default? If it was on by default, but could be turned off with a setting, would this be more acceptable to you? Thanks, Andrew