From: Dmitry Bely <dbely@mail.ru>
To: Xavier Leroy <xavier.leroy@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamldebug and windows
Date: Mon, 21 Oct 2002 18:17:19 +0400 [thread overview]
Message-ID: <r8ejkhao.fsf@mail.ru> (raw)
In-Reply-To: <20021021152135.E12164@pauillac.inria.fr>
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
next prev parent reply other threads:[~2002-10-21 14:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-21 10:43 Dmitry Bely
2002-10-21 13:21 ` Xavier Leroy
2002-10-21 14:17 ` Dmitry Bely [this message]
2002-10-22 7:57 ` Xavier Leroy
2002-10-22 11:23 ` Nicolas Cannasse
2002-10-22 15:56 ` Chris Hecker
2002-10-22 16:42 ` Mattias Waldau
2002-10-22 20:46 ` Pierre Weis
2002-10-23 6:58 ` Alessandro Baretta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=r8ejkhao.fsf@mail.ru \
--to=dbely@mail.ru \
--cc=caml-list@inria.fr \
--cc=xavier.leroy@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox