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

Joel Brobecker <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
> 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/Makefile.in`, 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,
> `elinos.py` and `wrs-linux.py`) and loaded when gdb starts up. This causes
> errors, as `wrs-linux.py` 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.

-- 
Joel
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.