This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: AW: [PATCH] source.s: Fix problem handling windows like path with MinGW
- From: Masaki Muranaka <monaka at monami-software dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: "Michael Fischer" <fischermi at t-online dot de>, gdb-patches at sourceware dot org
- Date: Sun, 18 Jun 2006 13:56:32 +0900
- Subject: Re: AW: [PATCH] source.s: Fix problem handling windows like path with MinGW
- References: <JLEAKDMELBINENLADICFIEFHCIAA.fischermi@t-online.de> <upsh72lki.fsf@gnu.org>
On 2006/06/18, at 12:23, Eli Zaretskii wrote:
[Please don't take this discussion off the mailing list.]
From: "Michael Fischer" <fischermi@t-online.de>
Date: Sat, 17 Jun 2006 23:32:25 +0200
Why ":" and not ";" ?
If I compile the GDB under MinGW, DIRNAME_SEPARATOR was set to ":".
If you take a look in gdb\defs.h, ";" is only defined in case of
__MSDOS__. I think MinGW will not set this define?!
What happens if you modify defs.h to define DIRNAME_SEPARATOR as `;'?
Does the problem go away?
I think in this case, we should change the add_path function too.
I think if DIRNAME_SEPARATOR is `;', add_path will do what you need.
Could you please check that?
BTW, Why do we use DIRNAME_SEPARATOR, instead of PATH_SEPARATOR ?
As PATH_SEPARATOR is detected by configure, it is trustable.
I think they will be same value on self builds, right?
Also we can choice to modify xm-.h on cross builds.
--
Masaki Muranaka
Monami software