Adding Python files to be autoloaded for a particular architecture
Christian Biesinger
cbiesinger@google.com
Fri Jul 17 22:31:59 GMT 2020
On Fri, Jul 17, 2020 at 5:22 PM Reuben Thomas <rrt@sc3d.org> wrote:
>
> On Fri, 17 Jul 2020 at 23:10, Christian Biesinger <cbiesinger@google.com> 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
More information about the Gdb
mailing list