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 MAA08498; Mon, 21 Oct 2002 12:43:18 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA08225 for ; Mon, 21 Oct 2002 12:43:17 +0200 (MET DST) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g9LAhFD02473 for ; Mon, 21 Oct 2002 12:43:16 +0200 (MET DST) Received: (from uucp@localhost) by relay.rinet.ru (8.11.6/8.11.6) with UUCP id g9LAhFm02435 for caml-list@inria.fr; Mon, 21 Oct 2002 14:43:15 +0400 (MSD) X-Envelope-To: caml-list@inria.fr Received: from pc-9-4.stormoff (PC-9-4) [192.168.0.100] by stormoff with esmtp (Exim 3.12 #1 (Debian)) id 183a1T-0004fS-00; Mon, 21 Oct 2002 14:42:59 +0400 To: caml-list@inria.fr Subject: [Caml-list] ocamldebug and windows From: Dmitry Bely Date: Mon, 21 Oct 2002 14:43:00 +0400 Message-ID: User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Economic Science (Windows [1]), i586-pc-win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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? I think it should be relatively easy (BTW Cygwin uses these functions in its fork() implementation). As for Unix sockets, Win32 has almost the same thing: named pipes. So maybe is time to bring ocamldebug to Win32? :-) - 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