From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50834 invoked by alias); 9 Oct 2016 11:28:48 -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 50824 invoked by uid 89); 9 Oct 2016 11:28:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:gdb@sou, tia, Hx-languages-length:1725 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Oct 2016 11:28:46 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btCHX-0008G4-JT for gdb@sourceware.org; Sun, 09 Oct 2016 07:28:44 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btCHX-0008Fh-Ga for gdb@sourceware.org; Sun, 09 Oct 2016 07:28:39 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4636 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1btCHW-0000xE-Cs for gdb@sourceware.org; Sun, 09 Oct 2016 07:28:38 -0400 Date: Sun, 09 Oct 2016 11:28:00 -0000 Message-Id: <83mvidg3rh.fsf@gnu.org> From: Eli Zaretskii To: gdb@sourceware.org Subject: Configuring GDB with autoload directory list Reply-to: Eli Zaretskii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00013.txt.bz2 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.