From: Stan Cox <scox@redhat.com>
To: Andrew Cagney <cagney@redhat.com>
Cc: frysk@sourceware.org
Subject: Re: /an/absolute/path/program.debug; Was: [SCM] master: Add -sysroot option to fhpd.
Date: Mon, 14 Jan 2008 20:27:00 -0000 [thread overview]
Message-ID: <1200342313.16575.109.camel@multics.rdu.redhat.com> (raw)
In-Reply-To: <478B9246.3060505@redhat.com>
Here is a more explicit example using a mock generated tree for ed and
which. So if elfutils is given the path
.debug:/accu/sysroot/usr/lib/debug then it will look in:
/accu/sysroot/usr/bin/which.debug (looks in dir of executable)
/accu/sysroot/usr/bin/.debug/which.debug (relative: looks in dir of
executable + relative dir + which.debug)
/accu/sysroot/usr/lib/debug/accu/sysroot/usr/bin/which.debug
(absolute: looks in absolute + executable dir + which.debug)
So what the code does is use a relative dir e.g. ../../usr/lib/debug/
so one gets
/accu/sysroot/usr/bin/../../usr/lib/debug/usr/bin/which.debug
(executable dir + relative dir + executable dir + which.debug)
/accu/sysroot/bin:
./ ../ ed*
/accu/sysroot/usr/bin:
./ ../ which*
/accu/sysroot/usr/lib/debug/bin:
./ ../ ed.debug*
/accu/sysroot/usr/lib/debug/usr/bin:
./ ../ which.debug*
/accu/sysroot/usr/src/debug/ed-0.5:
./ buf.c carg_parser.h glbl.c main.c re.c
../ carg_parser.c ed.h io.c main_loop.c signal.c
/accu/sysroot/usr/src/debug/which-2.16:
./ ../ bash.c getopt.h tilde/ which.c
next prev parent reply other threads:[~2008-01-14 20:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080114051518.31275.qmail@sourceware.org>
2008-01-14 9:06 ` Mark Wielaard
2008-01-14 13:17 ` Stan Cox
2008-01-14 16:50 ` /an/absolute/path/program.debug; Was: " Andrew Cagney
2008-01-14 20:27 ` Stan Cox [this message]
2008-01-14 17:09 ` Andrew Cagney
2008-01-14 20:33 ` Stan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200342313.16575.109.camel@multics.rdu.redhat.com \
--to=scox@redhat.com \
--cc=cagney@redhat.com \
--cc=frysk@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).