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
> Date: Tue, 25 Sep 2012 08:35:18 +0200
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: khooyp@cs.umd.edu, jan.kratochvil@redhat.com,
> gdb-patches@sourceware.org
>
> > > 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.
That's not what I meant. I don't see how using absolute file names is
safer than using file names computed from relative file names.