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: Pedro Alves <palves at redhat dot com>
- Cc: mark dot kettenis at xs4all dot nl, brobecker at adacore dot com, gdb-patches at sourceware dot org, 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: Sat, 06 Apr 2013 18:03:45 +0300
- 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> <83ip4f1knw dot fsf at gnu dot org> <5160298B dot 2080903 at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sat, 06 Apr 2013 14:56:27 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: Mark Kettenis <mark.kettenis@xs4all.nl>, brobecker@adacore.com,
> gdb-patches@sourceware.org, jan.kratochvil@redhat.com,
> ralf.corsepius@rtems.org, vapier@gentoo.org, joel.sherrill@oarcorp.com
>
> On 03/25/2013 04:58 PM, Eli Zaretskii wrote:
> >> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> >>> From: Eli Zaretskii <eliz@gnu.org>
> >>> 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.
>
> Replying mainly for the archives. On Linux, we can always
> readlink /proc/self/exe to figure out the full program path.
> That steps out of Posix, of course.
Ideas for other platforms can be taken from the gnulib progreloc.c
file.