From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 81EPIxPH0F/dEQAAWB0awg (envelope-from ) for ; Wed, 09 Dec 2020 07:46:11 -0500 Received: by simark.ca (Postfix, from userid 112) id 8131C1F0A9; Wed, 9 Dec 2020 07:46:11 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [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 D26311E590 for ; Wed, 9 Dec 2020 07:46:07 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 57DC6396ECA4; Wed, 9 Dec 2020 12:46:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57DC6396ECA4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1607517967; bh=B0KAPWtjQJP/0Yti5heaHFjsEbzA4g2U9yQNijGFuhY=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=A7BQC3Qdgz4fcIqOggPsApvhISQECW1/f6zCptlHaMeg+GstsUOfktZkbDIRuxEUX SG3Sho9+xnhk127sa24aO5De5Gky0RuOrNTmEqqCtnN+DypEL5whMvo/cKlDqpVYw2 QykezeC2yUlkYHaV/BV/3i6LnCKSX8u7NRsGcFLA= Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by sourceware.org (Postfix) with ESMTPS id A15243857C61 for ; Wed, 9 Dec 2020 12:46:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A15243857C61 Received: by mail-qt1-x842.google.com with SMTP id b9so766965qtr.2 for ; Wed, 09 Dec 2020 04:46:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B0KAPWtjQJP/0Yti5heaHFjsEbzA4g2U9yQNijGFuhY=; b=IHMQcHw4flztS1HmL4hJvCUUMx70gBBE7RAqc7WwLyN5aMDsKohVxpTrT2vl3EPYCh Vz76qT1ewPFm4v/MMd/49HMTk1Qw9WViPRaZ2ZCKlYt4rOGsU4AUpuc/OZARdeuSCBgq uvvT7w8SnftfTG8MITxT0Z10W8C9DnhQoYgUQkOPl1wvRgSEgUA+aImX/50maQIc6U/n jUTQDkjFsGtYkfLOaIO110GLpUnB08tQAAYynjYH1AsYSO0dTrQZDRzZFiHSyzAN+Rv3 r9opITO1J9tyDG81pVDY+j9ZQNnPf6Rl+as2A0otWyZmunDo7dc+0tvLtG8KHHGtiRVN CW+w== X-Gm-Message-State: AOAM530+fSF6DnS5cIhJDx2HAPk680z9E2MLpwouoY7lXXIuyuOGekSD 0eOGIM+POwfU+m+cSQ9CXU0x1Vr27UeQZ1vKZ8kpD7oTrGSSvAxS X-Google-Smtp-Source: ABdhPJwNq7t0er7Otyca9yLHwlD6JNbmVpebZh8PD3qzOFYsneqXrM+MwHHs7DxVHdvUjsbDOgD42PY4hTk0+ybG7PI= X-Received: by 2002:ac8:4910:: with SMTP id e16mr2903612qtq.244.1607517960934; Wed, 09 Dec 2020 04:46:00 -0800 (PST) MIME-Version: 1.0 References: <93d41b96-d11e-ed21-2a63-6a8270b5fbfe@polymtl.ca> <83pn3k71rt.fsf@gnu.org> In-Reply-To: Date: Wed, 9 Dec 2020 13:45:23 +0100 Message-ID: Subject: Re: [PATCH] gdb/gdbsupport: Use LOCALAPPDATA for index cache on windows To: Alexander Fedotov Content-Type: text/plain; charset="UTF-8" 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: , From: Christian Biesinger via Gdb-patches Reply-To: Christian Biesinger Cc: gdb-patches Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On Wed, Dec 9, 2020 at 10:15 AM Alexander Fedotov via Gdb-patches wrote: > > On Tue, Dec 8, 2020 at 6:31 PM Eli Zaretskii wrote: > > > > > Date: Tue, 8 Dec 2020 09:46:47 -0500 > > > From: Simon Marchi via Gdb-patches > > > > > > > > > My only question is about: > > > > > > return string_printf ("%s/" HOME_CACHE_DIR "/gdb", abs.get ()); > > > > > > That would give a final path like: > > > > > > C:\Users\Simon\AppData\Local\.cache\gdb > > > > > > The ".cache" part is not typical in this directory. Should we instead > > > just have: > > > > > > C:\Users\Simon\AppData\Local\gdb > > > > > > ? > > > > IMO, it indeed should be in C:\Users\Simon\AppData\Local\gdb, as other > > applications do. Moreover, I think we should use APPDATA, not > > LOCALAPPDATA, because it makes sense to be able to synchronize the > > cache over the network if the computer joins some domain. IOW, it > > isn't necessarily local data, is it? > IMO default behaviour should be restrictive and store user data > locally. If necessary user > can specify folder using .gdbinit or by commands explicitly. > I guess such a roaming user keeping his project under version control > along with makefiles > and .gdbinit. Is this only used for the index cache or also for other things? The index cache probably makes sense to be in Local, since it can be relatively big and caches should generally not roam. Other things may make more sense in the roaming part (e.g. settings). https://docs.microsoft.com/en-us/previous-versions/windows/apps/hh464917(v=win.10)?redirectedfrom=MSDN does say "The OS limits the size of the app data that each app may roam". Christian