This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Auto-load safe-path and auto-load scripts-directory on Windows
- From: Eli Zaretskii <eliz at gnu dot org>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: jan dot kratochvil at redhat dot com, gdb at sourceware dot org
- Date: Sat, 10 Oct 2015 10:27:23 +0300
- Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows
- Authentication-results: sourceware.org; auth=none
- References: <83io7y3249 dot fsf at gnu dot org> <83h9ni2zij dot fsf at gnu dot org> <20150829112713 dot GB3298 at host1 dot jankratochvil dot net> <83egim2uqz dot fsf at gnu dot org> <20150829114356 dot GA3766 at host1 dot jankratochvil dot net> <83a8ta2qsq dot fsf at gnu dot org> <56186C66 dot 1090907 at gmail dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sat, 10 Oct 2015 09:39:50 +0800
> From: asmwarrior <asmwarrior@gmail.com>
> 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.