Adding Python files to be autoloaded for a particular architecture

Christian Biesinger
Fri Jul 17 22:31:59 GMT 2020

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/
> 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


More information about the Gdb mailing list