From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6234 invoked by alias); 4 Sep 2018 18:22:35 -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 5629 invoked by uid 89); 4 Sep 2018 18:22:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=responding, attempted, risk X-HELO: gateway20.websitewelcome.com Received: from gateway20.websitewelcome.com (HELO gateway20.websitewelcome.com) (192.185.70.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Sep 2018 18:22:32 +0000 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 98668400C36C4 for ; Tue, 4 Sep 2018 13:22:31 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id xFyBfNg0FRPojxFyBfmX5q; Tue, 04 Sep 2018 13:22:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7kflU9xCxoi/yS+0lsxh6rArf43p0ajs6Facyr9j4bQ=; b=NpQX1lR5QLdtzrXG0yjZrZs5bd sESkgg5NTMgazam+DraMAMMA2SOCJahh/3RXpk4qcFZOttfrWGIoJ1EGSPXlzOPPF95qZBtbGTbpA dQqbhBLuL6j+nta2uKsE3HCzs; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:36210 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fxFyB-003Eqs-CE; Tue, 04 Sep 2018 13:22:31 -0500 From: Tom Tromey To: Jan Vrany Cc: Tom Tromey , "gdb\@sourceware.org" Subject: Re: Script autoloading References: <533925d3833ef42651918d147ccde1b6a953375b.camel@fit.cvut.cz> <87pnysapi8.fsf@tromey.com> <9076c35bc9e738f86edd401c6570955faf9565af.camel@fit.cvut.cz> Date: Tue, 04 Sep 2018 18:22:00 -0000 In-Reply-To: <9076c35bc9e738f86edd401c6570955faf9565af.camel@fit.cvut.cz> (Jan Vrany's message of "Wed, 15 Aug 2018 09:09:30 +0100") Message-ID: <87pnxtxgux.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-09/txt/msg00002.txt.bz2 >>>>> "Jan" == Jan Vrany writes: Sorry for not responding to this earlier. Jan> Any idea how to make it working on both, Linux and Windows with Jan> no additional setup (other than autoload-safe path)? What's is the Jan> rationale for excluding $cdir from source directories when searching Jan> for scipts? [...] Jan> Adding $cdir would solve this problem. The documentation also says: Jan> For object files using .exe suffix GDB tries to load first the Jan> scripts normally according to its .exe filename. But if no scripts Jan> are found GDB also tries script filenames matching the object Jan> file without its .exe suffix. This .exe stripping is case Jan> insensitive and it is attempted on any platform. This makes the Jan> script filenames compatible between Unix and MS-Windows hosts. Jan> Maybe we can have similar automagic for .so / .dll / .dylib Jan> extensions. Jan> I'm ready to write a patch and submit it, unless there's a reason for Jan> current behavior. I couldn't think of a reason, so why not go ahead. The only risk you have is of someone thinking of a reason during patch review, Tom