This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AW: [PATCH] source.s: Fix problem handling windows like path with MinGW



On 2006/06/19, at 4:43, Eli Zaretskii wrote:


Cc: "Michael Fischer" <fischermi@t-online.de>,
	gdb-patches@sourceware.org
From: Masaki Muranaka <monaka@monami-software.com>
Date: Sun, 18 Jun 2006 13:56:32 +0900

BTW, Why do we use DIRNAME_SEPARATOR, instead of PATH_SEPARATOR ?
As PATH_SEPARATOR is detected by configure, it is trustable.

Not really: MinGW lacks a port of Bash, so people are using all kinds of replacements, which may well produce `:' as PATH_SEPARATOR. In particular, two popular ports, the ones from Cygwin and MSYS, will do that, I think.

Cross builds are another such case.

So I think we should simply hard-code that in Windows native ports.

GCC3.4.x uses PATH_SEPARATOR and it seems that has no issue. What is the difference between GCC and GDB?


-- Masaki Muranaka Monami software



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]