Re: [PATCH 2/2] Try to initialize data-directory by first searching for "data-directory" in the same directory as the gdb binary

Joel Brobecker
2012-09-25T06:35:46Z

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