From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id capBDRy3fl98YAAAWB0awg (envelope-from ) for ; Thu, 08 Oct 2020 02:52:12 -0400 Received: by simark.ca (Postfix, from userid 112) id 294771EF6F; Thu, 8 Oct 2020 02:52:12 -0400 (EDT) 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 82D511E58C for ; Thu, 8 Oct 2020 02:52:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C47B73842439; Thu, 8 Oct 2020 06:52:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C47B73842439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1602139930; bh=KXPnXU6zbOgeNMOgFbjOascfQWc3tNggR1EXp4KGf/w=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=u3oV7IuIJufnRWO8dwWZFUL922j6eP22GGLnenSyIkm6EolsMw/G/UwByNqPl6xPr iLQ4bQwv1TmRsq5boEIO7lMkQApH9PQW9F7Eb2n4i3f2hb840Zr71nRgr+/OaF3moP 5UhEMNq22dKQ5Nt29FvTyRk2E74MFjRqA9JKlDlI= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id B1961386186A for ; Thu, 8 Oct 2020 06:52:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B1961386186A Received: from fencepost.gnu.org ([2001:470:142:3::e]:59593) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQPma-0001Vc-4k; Thu, 08 Oct 2020 02:52:08 -0400 Received: from [176.228.60.248] (port=3239 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kQPmZ-000607-Ij; Thu, 08 Oct 2020 02:52:07 -0400 Date: Thu, 08 Oct 2020 09:52:14 +0300 Message-Id: <83eem98b1d.fsf@gnu.org> To: Andrew Burgess In-Reply-To: <92f3b4d4a87643bbb9768fbcb9ee8c77cd5ba8de.1601927355.git.andrew.burgess@embecosm.com> (message from Andrew Burgess on Wed, 7 Oct 2020 21:05:06 +0100) Subject: Re: [PATCH 2/7] gdb: use get_standard_config_dir when looking for .gdbinit References: <92f3b4d4a87643bbb9768fbcb9ee8c77cd5ba8de.1601927355.git.andrew.burgess@embecosm.com> 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: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: tom@tromey.com, gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" > From: Andrew Burgess > Date: Wed, 7 Oct 2020 21:05:06 +0100 > Cc: Tom Tromey > > This commit effectively changes the default location of the .gdbinit > file, while maintaining backward compatibility. > > For non Apple hosts the .gdbinit file will now be looked for in the > following locations: > > $XDG_CONFIG_HOME/gdb/gdbinit > $HOME/.config/gdb/gdbinit > $HOME/.gdbinit > > On Apple hosts the search order is instead: > > $HOME/Library/Preferences/gdb/gdbinit > $HOME/.gdbinit Thanks. I still wonder why we treat Apple specially here. > +Do not execute commands found in any initialization file "files" Also, I think this should say "in any startup or initialization files", as startup file loading is also prevented, right? > +(@pxref{Initialization Files}). There should be a cross-reference to where startup files are described as well. > +As the system wide and home directory initialization files are > +@value{GDBN} will check the current directory for a file called > +@file{./.gdbinit}. It is loaded last, after command line options ^^^^^^^^^^ The "./" part is redundant here.