From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92797 invoked by alias); 26 Aug 2019 13:31:30 -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 92789 invoked by uid 89); 26 Aug 2019 13:31:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=sourcing X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Aug 2019 13:31:29 +0000 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EA42959474 for ; Mon, 26 Aug 2019 13:31:27 +0000 (UTC) Received: by mail-wr1-f71.google.com with SMTP id f9so9726145wrq.14 for ; Mon, 26 Aug 2019 06:31:27 -0700 (PDT) Received: from ?IPv6:2001:8a0:f913:f700:4c97:6d52:2cea:997b? ([2001:8a0:f913:f700:4c97:6d52:2cea:997b]) by smtp.gmail.com with ESMTPSA id g7sm12846894wmh.1.2019.08.26.06.31.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Aug 2019 06:31:25 -0700 (PDT) Subject: Re: [PATCH 0/3] [RFC] Load gdbinit files from a directory To: Christian Biesinger References: <20190820221745.147370-1-cbiesinger@google.com> Cc: gdb-patches From: Pedro Alves Message-ID: Date: Mon, 26 Aug 2019 13:31:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-08/txt/msg00589.txt.bz2 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. Thanks, Pedro Alves