This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Try to initialize data-directory by first searching for "data-directory" in the same directory as the gdb binary
> > I my opinion, it opens a very obvious window for running something
> > the user didn't mean to run.
>
> I don't see how.
There are Python files in inside one of its directories, and they can
get executed when starting up. Take a look at the __init__.py files in
gdb/python/lib/gdb and gdb/python/lib/gdb/command, for instance.
--
Joel