Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocamldebug and windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] ocamldebug and windows
Xavier Leroy <xavier.leroy@inria.fr> writes:

>> Ocaml debugger normally implements checkpoins via fork() syscall, which is
>> not available under Win32. But why simply not to use
>> ReadProcessMemory()/WriteProcessMemory() Win32 API functions to
>> save/restore the process memory image?
>
> You need a bit more than this: file and socket handles also need some
> checkpointing (of the kind that fork() does on file descriptors in the
> Unix world).

Really? Correct me if I am wrong, but fork() should care of the proper
handle copying because it creates the new child process, that should be in
the same state. But I suggest to use the only process, just save/restore
its state somethere when needed. This way the memory dump seems to be
sufficient, no?

Excuse me if this discussion becomes off-topic. I just wish Ocaml success in
Win32 world :-)

- Dmitry Bely


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners