Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Joel Brobecker <brobecker@adacore.com>,
	 Eli Zaretskii <eliz@gnu.org>,
	 danny.backx@scarlet.be,  drow@false.org
Subject: Re: shared lib dos filename style - one more question
Date: Tue, 13 Oct 2009 10:57:00 -0000	[thread overview]
Message-ID: <200910131157.25180.pedro@codesourcery.com> (raw)
In-Reply-To: <20091013052437.GJ5272@adacore.com>

On Tuesday 13 October 2009 06:24:37, Joel Brobecker wrote:
> 
> > If unixify is supposed to support Windows file semantics, then the
> > last 2 cases are incorrect, IMO.  4 should return "c:." and 5
> > "c:/path/to/a".
> 
> Actually, I think in this case "unixify" would mean trying to make
> sense out of Windows path on a Unix machine: The target sent us
> c:\path\to\dll, and we're trying to find that dll on the host.
> So best guess on the host is probably /path/to/dll.  After that,
> we should be able to use the root prefix setting, if necessary,
> in order to find the file on the host.
> 

That leaves out drives other than "c:", unlike Eli's version.
Do we always want to discard that possibility?
If the "c:/" isn't there, then at least a "c/" could be, so that
you can still map a "d:" using directories or symlinks on
the host, something like this:

 /sysroot/c/path/to/a
 /sysroot/d/path/to/b

Leaving the ':' in:

 /sysroot/c:/path/to/a
 /sysroot/d:/path/to/b

The former, without ':' allows using the same sysroot
on a Windows host, since I don't think you can create
directories with ':' there.

(
 Wine maps a "sysroot" similarly:

  ls -als .wine/dosdevices/
  c: -> ../harddiskvolume1
  d: -> ../harddiskvolume2
  z: -> /

 Look, a file named 'c:' on a unix box! Okay, this
 case doesn't really count.  :-)
)


Worth considering, IMHO, perhaps as an optional mode,
similar (or exactly like) to Daniel's tri-state
setting suggestion.

-- 
Pedro Alves


  reply	other threads:[~2009-10-13 10:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26 13:49 Danny Backx
2009-10-07 20:05 ` Danny Backx
2009-10-07 20:11   ` Daniel Jacobowitz
2009-10-08 16:01     ` Danny Backx
2009-10-09 17:36       ` Joel Brobecker
2009-10-09 18:58         ` Danny Backx
2009-10-10  2:19           ` Joel Brobecker
2009-10-12 20:05             ` Danny Backx
2009-10-12 20:28               ` Eli Zaretskii
2009-10-13  5:24                 ` Joel Brobecker
2009-10-13 10:57                   ` Pedro Alves [this message]
2009-10-13 15:30                     ` Joel Brobecker
2009-10-13 18:23                       ` Eli Zaretskii
2009-10-13 18:12                   ` Eli Zaretskii
2009-10-13 18:19                     ` Daniel Jacobowitz
2009-10-12 20:45             ` Daniel Jacobowitz
2009-10-13  5:21               ` Joel Brobecker
2009-10-13 15:51                 ` Daniel Jacobowitz
2009-10-14 20:18               ` Danny Backx
2009-10-17  4:16                 ` Joel Brobecker

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=200910131157.25180.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=danny.backx@scarlet.be \
    --cc=drow@false.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@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