From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by sourceware.org (Postfix) with ESMTPS id 89A963857004 for ; Fri, 17 Jul 2020 22:32:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 89A963857004 Received: by mail-qv1-xf2d.google.com with SMTP id m9so4957029qvx.5 for ; Fri, 17 Jul 2020 15:32:36 -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:content-transfer-encoding; bh=mcl5zoUxn28Fc6cw2qFQmtIeri9WbhxhSVPRHM4nDJs=; b=uhAU7nR0Nj2dYN79q2jyaegz0+sRqDn3Xm48cUiCIY3FmlKEleztcwp3W1J/5AlcAt bATEEHft+w2n+JOl0tlumJGcUT54oedalC+/5KMzWZzFSsQIMjRKmTLcJJ8EyE4ZCxra KKKE3gHiGf5zaDmNicM/gUxUyRnZ6aJ6gwx8TUOXMQmQ6HlGNAtBVtMO/MV3oVHCjJgC 131dTIrkTtpcW6si/27iFWgqiNuxqh4UtRkh24YwXzcrCjaDDlSLHjm4L3Ce543yvaU+ d2Yc3ctzfvrp8QzqaqjeJLsdOnEXf/NeBbzTwtQoPEge0CZycA2i6nzvnNwCmo/LK1i9 vWhg== X-Gm-Message-State: AOAM530tVzs7B8P2qYnwxlAJY3MdIKsorli9N3XLe69Z6wecQ5AKxAzf c7UqitfSW7iFldlG7hvHhWZmnQE+DD7hw7ac2w98R8JA X-Google-Smtp-Source: ABdhPJxHxTnKc6R3TobJPWtgeP49yb9KgMkm3JvygPZzGRKuiOXyl3kxKptVelDEIB2bKnNZdWb0Z0poxEFkeIOqQCw= X-Received: by 2002:a05:6214:13f4:: with SMTP id ch20mr11267265qvb.73.1595025155713; Fri, 17 Jul 2020 15:32:35 -0700 (PDT) MIME-Version: 1.0 References: <20200717214210.GU5016@adacore.com> In-Reply-To: From: Christian Biesinger Date: Fri, 17 Jul 2020 17:31:59 -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" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-19.1 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: Fri, 17 Jul 2020 22:32:37 -0000 On Fri, Jul 17, 2020 at 5:22 PM Reuben Thomas wrote: > > On Fri, 17 Jul 2020 at 23:10, Christian Biesinger = wrote: >> >> >> You could certainly add new rules modeled after the system-gdbinit >> ones in gdb/data-directory/Makefile.in? > > > Thanks for your suggestion! Sorry if I'm failing to understand something = obvious, but what exactly do you mean by "new rules modeled after the syste= m-gdbinit ones"? In particular, it's not obvious to me how such a rule woul= d cause the file(s) I add to be automatically loaded on startup, without al= so adding support for some other directory to GDB itself. Sorry, to clarify, my suggestion is: - Configure your gdb with --with-system-gdbinit-dir=3D/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 Christian