From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA13651; Mon, 21 Oct 2002 15:21:43 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA14014 for ; Mon, 21 Oct 2002 15:21:42 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9LDLZ513931; Mon, 21 Oct 2002 15:21:35 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA13968; Mon, 21 Oct 2002 15:21:35 +0200 (MET DST) Date: Mon, 21 Oct 2002 15:21:35 +0200 From: Xavier Leroy To: Dmitry Bely Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamldebug and windows Message-ID: <20021021152135.E12164@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dbely@mail.ru on Mon, Oct 21, 2002 at 02:43:00PM +0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I am just curious why ocamldebug cannot work in the native Win32 > Ocaml. Having searched the mailing list archives, I found the following > Xavier Leroy's article > > http://caml.inria.fr/archives/199903/msg00014.html > > where he explains that two main problems are (1) absense of checkpointing > facilities and (2) absense of unix sockets equivalent. > > 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). > I think it should be relatively > easy (BTW Cygwin uses these functions in its fork() implementation). Yes, and I've looked at the fork() implementation in Cygwin. It's a remarkable engineering feat, but not something that I'd call "relatively easy" :-) > As for Unix sockets, Win32 has almost the same thing: named pipes. Agreed, this isn't a show-stopper. > So maybe is time to bring ocamldebug to Win32? :-) As soon as someone writes a decent process checkpointing library for Win32 :-) - Xavier Leroy ------------------- 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