From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by sourceware.org (Postfix) with ESMTPS id EDD3F3857C51 for ; Mon, 20 Jul 2020 20:27:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EDD3F3857C51 Received: by mail-qv1-xf36.google.com with SMTP id e3so8199760qvo.10 for ; Mon, 20 Jul 2020 13:27:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m6eSFbI6EcxgmNJFTiQ0C/r+QBgLTeiaBaXr5HxNNV0=; b=RQX4xWDZhwH72mc9VV8OYk68InlCzn7qunzXswL3zBiaDenxRXRJTLewli8q1tw2xF dje+uuGiTFb7UoNROKvRMnaavATFn1ZEFDG1OSQ1SvW4zGjnro0RTO4lXN6mTM93XZ3G EqYbAfwTGQsfhYJv/PiKy3Xe/6k4PbOC+g3scgq/vJxLJswK1vVyPTacC54x1kBPUUHG pXkKR5vLSJxrAVL2n/vZAqYR9EZ13cVbcodprNVxypyfZbhOzygCD/LL/b6IntWKN0Sa MmftvDKZ0f8P+JWRHeCcUocRz/NwbjgH6Qe6spSKap2KmwwvjfpFdXqeatPHBedPbQdi 6PAg== X-Gm-Message-State: AOAM533uaPJj4uCvUzrGGCGypH+fJBk/by2YAXmB5mlO5DLBxqk56O6L 2MxLuBEamHJWbGAXkmefWNbZ3aJql7cSNY1HHtO3ww== X-Google-Smtp-Source: ABdhPJwg3tLa40ZC7eOm4FwazOOOTQkz0T0l99UMzJdPW/W1naeN0VjjGpSM+A7OUCsfO9a0B2jtPJqxPv7hEpYYWkM= X-Received: by 2002:a05:6214:13f4:: with SMTP id ch20mr23477523qvb.73.1595276852351; Mon, 20 Jul 2020 13:27:32 -0700 (PDT) MIME-Version: 1.0 References: <20200717214210.GU5016@adacore.com> In-Reply-To: From: Christian Biesinger Date: Mon, 20 Jul 2020 15:26:55 -0500 Message-ID: Subject: Re: Adding Python files to be autoloaded for a particular architecture To: Reuben Thomas Cc: Joel Brobecker , Reuben Thomas via Gdb Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2020 20:27:34 -0000 On Fri, Jul 17, 2020 at 5:38 PM Reuben Thomas wrote: > > [Apologies to Christian, I sent a reply off-list. Replying again to all.] > > On Fri, 17 Jul 2020 at 23:32, Christian Biesinger wrote: > >> >> Sorry, to clarify, my suggestion is: >> - Configure your gdb with --with-system-gdbinit-dir=/etc/gdbinit.d or >> something, and >> - Add rules to install your new file in that dir, if your platform is >> enabled & the system init dir was provided > > > Thanks very much for the clarification. However, it's unfortunate that a user of my architecture would have to configure --with-system-gdbinit-dir, or not get the Python files? I see. In that case, I see two options: - Put it in gdb/python/lib/gdb. That directory has so far only been used as an implementation detail for gdb's python API, but maybe maintainers will be OK with extending it in that way. That dir does get installed whenever python is enabled. - Or implement it in C++ How does that sound? Christian