From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2532 invoked by alias); 10 Oct 2015 07:27:23 -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 2480 invoked by uid 89); 10 Oct 2015 07:27:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout21.012.net.il Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 10 Oct 2015 07:27:20 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NVZ00F00TYH4I00@a-mtaout21.012.net.il> for gdb@sourceware.org; Sat, 10 Oct 2015 10:27:18 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVZ00FSCU1H3E20@a-mtaout21.012.net.il>; Sat, 10 Oct 2015 10:27:18 +0300 (IDT) Date: Sat, 10 Oct 2015 07:27:00 -0000 From: Eli Zaretskii Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows In-reply-to: <56186C66.1090907@gmail.com> To: asmwarrior Cc: jan.kratochvil@redhat.com, gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83egh3tc84.fsf@gnu.org> References: <83io7y3249.fsf@gnu.org> <83h9ni2zij.fsf@gnu.org> <20150829112713.GB3298@host1.jankratochvil.net> <83egim2uqz.fsf@gnu.org> <20150829114356.GA3766@host1.jankratochvil.net> <83a8ta2qsq.fsf@gnu.org> <56186C66.1090907@gmail.com> X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00043.txt.bz2 > Date: Sat, 10 Oct 2015 09:39:50 +0800 > From: asmwarrior > CC: gdb@sourceware.org > > Maybe, this discussion is related: > pkg-config wiki update and build problem - http://permalink.gmane.org/gmane.comp.gnu.mingw.msys/3822 That discussion is about a different problem, which we don't have in GDB. In GDB, the relevant character, DIRNAME_SEPARATOR, is computed at compile time (not at configure time) in gdb/common/host-defs.h. > Then, replace some text in the configure.ac: > > AC_MSG_CHECKING([for default auto-load directory]) > AC_ARG_WITH(auto-load-dir, > AS_HELP_STRING([--with-auto-load-dir=PATH], > [directories from which to load auto-loaded scripts @<:@$debugdir:$datadir/auto-load@:>@]),, > [with_auto_load_dir='$debugdir:$datadir/auto-load']) > escape_dir=`echo $with_auto_load_dir | sed 's/[[$]]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'` > AC_DEFINE_DIR(AUTO_LOAD_DIR, escape_dir, > [Directories from which to load auto-loaded scripts.]) > AC_MSG_RESULT([$with_auto_load_dir]) Patches to configure.ac to fix this problem are welcome. I don't think we need elaborate logic to compute the character, it's enough to look at the host name. Thanks.