From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47854 invoked by alias); 20 Sep 2015 06:13:07 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 47630 invoked by uid 89); 20 Sep 2015 06:12:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout29.012.net.il Received: from mtaout29.012.net.il (HELO mtaout29.012.net.il) (80.179.55.185) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 20 Sep 2015 06:12:07 +0000 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NUY00B00P85JG00@mtaout29.012.net.il> for gdb@sourceware.org; Sun, 20 Sep 2015 09:12:41 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUY003NAP95GS80@mtaout29.012.net.il>; Sun, 20 Sep 2015 09:12:41 +0300 (IDT) Date: Sun, 20 Sep 2015 06:13:00 -0000 From: Eli Zaretskii Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows In-reply-to: <55FDE51A.1060009@gmail.com> To: asmwarrior Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83fv29pqkj.fsf@gnu.org> References: <83io7y3249.fsf@gnu.org> <55FDE51A.1060009@gmail.com> X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00016.txt.bz2 > Date: Sun, 20 Sep 2015 06:43:38 +0800 > From: asmwarrior > > On 2015-8-29 16:55, Eli Zaretskii wrote: > > I've noticed that the default values of these 2 path lists use ':' as > > directory separator, even on MS-Windows. Isn't that a bug? (Does > > anyone use these features on Windows? if so, how come no one noticed?) > > > > When I start GDB on windows, I pass this argument: > -iex "set auto-load safe-path /" (You can have that in your ~/.gdbinit instead, then you won't need to specify this argument on every invocation of GDB.) > This enable Auto-load safe-path to every directories. This is not quite safe, but it works. As long as auto-load safe-path includes a single directory on the current drive, be it "/" or anything else, you can get away with this bug. But once you really want a list of directories, or a directory on a specific drive, you are toast: the feature becomes broken.