[patch] IS_ABSOLUTE_PATH to handle both DOS and POSIX path st yles

Daniel Jacobowitz drow@false.org
Mon Jan 7 03:40:00 GMT 2008


On Sun, Jan 06, 2008 at 01:07:25PM -0800, Doug Evans wrote:
> Another thing that occurs to me is that I vaguely remember building
> libraries in one environment and then using the library in another.  I
> could be mistaken, it's been awhile.  Can one have a case where both
> path formats are in use simultaneously?

Yes, that's what I was going to add.  This is how I normally work.
We build toolchains using a GNU/Linux host, including libraries.  When
our customers run the IDE on Windows, they get mixed debug
information; some has Windows paths, some has POSIX paths.  I think
that a best-effort approach to work with both is more valuable than
handling the few corner cases where that breaks down (e.g. paths
containing a '\' or ':' on a POSIX system).

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list