[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-debug-dev] Translating CygWin path names to WIndows paths and back again
|
> > I expect this issue to be handled in CDT 3.0, but if anyone has any
> > tricks up their sleeves that they could share, it would be much
> > appreciated.
> >
> > It is necessary to translate to/from CygWin paths at the lowest possible
> > level in the GDB/CDT interface, such that "poisoned paths" (CygWin
> > paths) do not spread throughout Eclipse CDT.
> >
> > Below is an example of where I've hacked CDT...
> >
>
> Can you give us more concrete examples of the different filenames
> that lead to the confusion. Is it something like
> gdb returns for a breakpoint filename:
> /cygdrive/c/workspace/project/src/foo.c
> and eclipse expect
> C:\workspace\project\src\foo.c
Thats one example.
But, I find it strange & disturbing that you ask for an example.
Basically there are a couple of things that need to happen.
1. A full or partial path must be translated from GDB speak to CDT speak
2. A full or partial CDT path must be translated to GDB speak
3. CDT must store a path that GDB provided, and pass that path back to
GDB the next time GDB asks for it(unmolested).
I don't know of a case where I've gotten bitten by #3.
If information can be lost when translating a path GDB->CDT->GDB, then
larger changes to CDT will be required....
--
Øyvind Harboe
http://www.zylin.com