Re: one week to gdb-7.6 release?

Eli Zaretskii
2013-03-25T16:58:50Z

> Date: Mon, 25 Mar 2013 17:27:43 +0100 (CET)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: brobecker@adacore.com, gdb-patches@sourceware.org, palves@redhat.com, jan.kratochvil@redhat.com, ralf.corsepius@rtems.org, vapier@gentoo.org, joel.sherrill@oarcorp.com
>
> > Date: Mon, 25 Mar 2013 18:14:55 +0200
> > From: Eli Zaretskii <eliz@gnu.org>
> >
> > > What I would do is add a comment inside the posix implementation that
> > > the current use of this function is such that returning a copy of
> > > the argument is sufficient. That way, someone finding that the function
> > > finally needs to be implemented will understand the history.
> >
> > I think on Posix platforms, the way to convert argv[0] to an absolute
> > file name is to search PATH.
>
> Not really; argv[0] can be set to anything. It's just convention that
> it gets set to the name of the program being executed.

Well, if it isn't set to the name of the program, and its leading
directory doesn't name the directory where the real GDB executable
lives, then relocation of directories simply cannot work, and
shouldn't be expected to. I think we should only care about the use
cases where the pre-conditions for relocation do exist.