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: asmwarrior <asmwarrior at gmail dot com>
- To: Eli Zaretskii <eliz at gnu dot org>, Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Sat, 10 Oct 2015 09:39:50 +0800
- 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>
On 2015-8-29 21:00, Eli Zaretskii wrote:
>> Date: Sat, 29 Aug 2015 13:43:56 +0200
>> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>> Cc: gdb@sourceware.org
>>
>> On Sat, 29 Aug 2015 13:34:44 +0200, Eli Zaretskii wrote:
>>> Like this:
>>>
>>> /* Directories from which to load auto-loaded scripts. */
>>> #define AUTO_LOAD_DIR "$debugdir"
>>
>> OK, so the bug is in configure.ac, if it is used in Mingw on MS-Windows (if
>> you use Mingw). I do not see what is wrong in configure.ac, MS-Windows host
>> maintainer should debug that.
>
> Thanks, I've filed bug reports for both problems.
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=18897
> https://sourceware.org/bugzilla/show_bug.cgi?id=18898
>
Maybe, this discussion is related:
pkg-config wiki update and build problem - http://permalink.gmane.org/gmane.comp.gnu.mingw.msys/3822
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])
Yuanhui Zhang