Adding Python files to be autoloaded for a particular architecture

Joel Brobecker
Fri Jul 17 21:42:10 GMT 2020

> This seems to be a suitable candidate for SYSTEM_GDBINIT_FILES. But if I
> simply add a file to `SYSTEM_GDBINIT_FILES` in
> `gdb/data-directory/`, and then configure with
> --with-system-gdbinit-dir=$pkgdatadir/system-gdbinit

You can try with --with-system-gdbinit=xxx instead.

> then all of the files are installed (there are already two existing files,
> `` and ``) and loaded when gdb starts up. This causes
> errors, as `` in particular expects to find an environment
> variable which I have not set.

We can probably delete these two files, if no one else finds them useful
anymore. But I don't think you really want to use GDB's system-gdbinit
as a system-gdbinit-dir; generally speaking, my understand of the
directory provided in the GDB sources is that it's a collection of
files that are not necessarily meant to always be relevant.


More information about the Gdb mailing list