Re: Adding Python files to be autoloaded for a particular architecture

Christian Biesinger via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAPTJ0XGa01TrPfE6yQO-YtfXhOWdTxKcObkwrJE0hCwJcNivUg@mail.gmail.com>
On Fri, Jul 17, 2020 at 5:22 PM Reuben Thomas <[email protected]> wrote:
>
> On Fri, 17 Jul 2020 at 23:10, Christian Biesinger <[email protected]> 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 system-gdbinit ones"? In particular, it's not obvious to me how such a rule would cause the file(s) I add to be automatically loaded on startup, without also adding support for some other directory to GDB itself.

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

Christian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.