This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: one week to gdb-7.6 release?
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: brobecker at adacore dot com, gdb-patches at sourceware dot org, palves at redhat dot com, jan dot kratochvil at redhat dot com, ralf dot corsepius at rtems dot org, vapier at gentoo dot org, joel dot sherrill at oarcorp dot com
- Date: Mon, 25 Mar 2013 18:58:11 +0200
- Subject: Re: one week to gdb-7.6 release?
- References: <20130320160032 dot GC5447 at adacore dot com> <83vc8myoyb dot fsf at gnu dot org> <83ehf64cfs dot fsf at gnu dot org> <20130323162534 dot GI5447 at adacore dot com> <834ng23soj dot fsf at gnu dot org> <20130325151825 dot GJ5447 at adacore dot com> <83k3ov1mo0 dot fsf at gnu dot org> <201303251627 dot r2PGRheU015551 at glazunov dot sibelius dot xs4all dot nl>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.