From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85623 invoked by alias); 12 Sep 2019 22:14:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 85614 invoked by uid 89); 12 Sep 2019 22:14:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.2 required=5.0 tests=AWL,BAYES_00,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.1 spammy=sourcing, HTo:U*palves, UD:gdb, H*f:sk:CAPTJ0X X-HELO: mail-oi1-f195.google.com Received: from mail-oi1-f195.google.com (HELO mail-oi1-f195.google.com) (209.85.167.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Sep 2019 22:14:30 +0000 Received: by mail-oi1-f195.google.com with SMTP id b80so573487oii.7 for ; Thu, 12 Sep 2019 15:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/6G6D59CIbtgqK+FsSUdUNiObNFAqI40n1hTSmmMA48=; b=h5+Jl/mm9gFVQLA3gWshoMRi3mP84bBAA/Zwg9qwlh/GjZk5AzSZZ9j2ZATeSoe2mM YlwlQ+ixmBDPSWBXw6lmgxmUo763TW+ZZ6iQ0un/lKnRYLRTblBFMUvDEVBs3jilU4u/ 4hSUAb9Q5ecxFf1U/GroVcC7rhYiIXNWF4Q/Kim43C86YRwVyTQN2ZQ27KWIXK3vaOh9 jLwajWf/4Zy6Tf1rvOUgIsrzmh/lXmjr1tIBctGBiGy+CD7I5mARC1NJUUwIn5YmX1Yt D0tf2kBjbVs5HJ3N4QyaXi0G5Q5vu9F6qkxRnrmc6OETvYAM6HSlWZlCy+enH9nv9inA Pr8w== MIME-Version: 1.0 References: <20190820221745.147370-1-cbiesinger@google.com> In-Reply-To: From: "Christian Biesinger via gdb-patches" Reply-To: Christian Biesinger Date: Thu, 12 Sep 2019 22:14:00 -0000 Message-ID: Subject: Re: [PATCH 0/3] [RFC] Load gdbinit files from a directory To: Pedro Alves Cc: gdb-patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00228.txt.bz2 On Mon, Aug 26, 2019 at 8:31 AM Pedro Alves wrote: > > On 8/25/19 11:23 PM, Christian Biesinger via gdb-patches wrote: > > On Wed, Aug 21, 2019 at 2:13 PM Pedro Alves wrote: > >> > >> On 8/20/19 11:17 PM, Christian Biesinger via gdb-patches wrote: > >>> This patch series is some refactoring and then a patch to load gdbinit > >>> files from a directory, instead of only allowing a single file. > >>> > >>> Fedora ships a system gdbinit file that does something similar; this > >>> does this by default and also works if Python is disabled. > >> > >> Note that Fedora won't be able to replace the current mechanism with > >> this, because it also loads Python files from the dir: > > > > Hi Pedro, > > > > I've looked at the code more closely now, and it already uses the > > "source" command for loading the system gdbinit file(s). So, Fedora > > should be able to use it, I think? > > Are you sourcing every file in the directory irrespective of > filename / filename extension? Not sure that's a good idea. I sent an updated version of the patch that limits files to *.gdb and any other supported scripting languages (so .py/.scm right now) Christian