Ian Lynagh wrote:

On the second one whether it is the right fix. I could be missing something.

I don't think that this will work if we do
    :cd myDir
    :l myFile.hs
Am I wrong?

Pepe - perhaps you could elaborate on exactly what is wrong and how you're trying to fix it.

As I understand it, the problem we have right now is what happens when the program itself calls System.Directory.setCurrentDirectory, and when we stop at a breakpoint, :list doesn't work. I think the right fix for this is to "virtualise" the current working directory for the client program - that is, we save/restore the cwd whenever we run client code. This is more robust than trying to use absolute paths throughout GHC.

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to