* Configuring GDB with autoload directory list
@ 2016-10-09 11:28 Eli Zaretskii
2016-10-09 11:35 ` Jan Kratochvil
0 siblings, 1 reply; 2+ messages in thread
From: Eli Zaretskii @ 2016-10-09 11:28 UTC (permalink / raw)
To: gdb
I keep around old binaries of GDB, renamed as gdb-VERSION, for testing
purposes. So I don't like it when a new installation overwrites the
data files of the old one under share/gdb/. So I configure GDB to use
a version specific directory, as in
--with-gdb-datadir=d:/usr/share/gdb/7.12
That requires me to augment the auto-load places, because those are
common, not specific to some GDB version. So I also include these two
options to configure:
--with-auto-load-dir='$debugdir;$datadir/../auto-load' --with-auto-load-safe-path='$debugdir;$datadir/../auto-load'
Note that I must use the semi-colon in these lists, because this is a
native MS-Windows build of GDB.
The problem is that this somehow doesn't work The configure script
emits the following messages:
checking for default auto-load directory... /d/gnu/gdb-7.12/gdb/configure: line 5580: \$datadir/../auto-load: No such file or directory
$debugdir;$datadir/../auto-load
checking for default auto-load safe-path... /d/gnu/gdb-7.12/gdb/configure: line 5607: \$datadir/../auto-load: No such file or directory
$debugdir;$datadir/../auto-load
and the produced gdb/config.h says just this:
/* Directories from which to load auto-loaded scripts. */
#define AUTO_LOAD_DIR "$debugdir"
/* Directories safe to hold auto-loaded files. */
#define AUTO_LOAD_SAFE_PATH "$debugdir"
What should I do to get it to say this instead:
/* Directories from which to load auto-loaded scripts. */
#define AUTO_LOAD_DIR "$debugdir;$datadir/../auto-load"
/* Directories safe to hold auto-loaded files. */
#define AUTO_LOAD_SAFE_PATH "$debugdir;$datadir/../auto-load"
? Is this a bug in GDB or am I doing something wrong?
TIA.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Configuring GDB with autoload directory list
2016-10-09 11:28 Configuring GDB with autoload directory list Eli Zaretskii
@ 2016-10-09 11:35 ` Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2016-10-09 11:35 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb
On Sun, 09 Oct 2016 13:28:50 +0200, Eli Zaretskii wrote:
> --with-auto-load-dir='$debugdir;$datadir/../auto-load' --with-auto-load-safe-path='$debugdir;$datadir/../auto-load'
There is tricky all the escaping in configure shell and I was really testing
it only with the UNIX ':' delimiters.
> checking for default auto-load directory... /d/gnu/gdb-7.12/gdb/configure: line 5580: \$datadir/../auto-load: No such file or directory
Such error message looks to me as the configure script is not handling the ':'
delimiter right.
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-09 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09 11:28 Configuring GDB with autoload directory list Eli Zaretskii
2016-10-09 11:35 ` Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox