From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_POST, MISSING_HEADERS,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 67047BC37 for ; Tue, 9 Jun 2009 15:37:50 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQFAFoCLkrRVdvXdWdsb2JhbACOE4lbPwEMCgsHEqV1CIENj3IBAwIEhAYFhko X-IronPort-AV: E=Sophos;i="4.41,331,1241388000"; d="scan'208";a="29162002" Received: from mail-ew0-f215.google.com ([209.85.219.215]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Jun 2009 15:37:50 +0200 Received: by ewy11 with SMTP id 11so5460382ewy.9 for ; Tue, 09 Jun 2009 06:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=pFLYBb1hBeJCvRdeIHWC6oEmAdoY3LhjcV1uuNfAAPA=; b=YyV5pM4p4VFcCx3CLp3qS9DnxXGVWj55fRl3Q9MvhEy2hebp3ZgACI6HAGivWroAe1 7oHNy+eOU+3cnbFCqGs34Ll1QPWJjDFWaPf/KTmUiKf+okorduYSd+o6xW9/T88D8xhp I0nSD/8Y3K8I18HUBp1HcY0yoEazjTP/g7NTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=MXth/FF6QhvdE2DfUdTD6VNzYeRl8jKBpJDx51plrGCIzeO6oKeVN7wvkUWXGYr16z KFplltTh25xiddEFjRwV1qZzoa5CA96nlmSPXVg17v88WXOwt5whfCe7YechRhe34FXO YzvaJZIkyhr71hgnApQHaRocEO0rRc28gFIFI= Received: by 10.210.66.13 with SMTP id o13mr118595eba.90.1244554669664; Tue, 09 Jun 2009 06:37:49 -0700 (PDT) Received: from ?192.168.1.10? (48.47.200-77.rev.gaoland.net [77.200.47.48]) by mx.google.com with ESMTPS id 23sm64338eya.49.2009.06.09.06.37.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Jun 2009 06:37:49 -0700 (PDT) Message-ID: <4A2E65AA.2050102@gmail.com> Date: Tue, 09 Jun 2009 15:37:46 +0200 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Is it possible to debug (multithreaded) lablgtk2 apps? References: <4A2E0C91.3010209@gmail.com> <90823c940906090414m714ab8b5o128c329133516618@mail.gmail.com> In-Reply-To: <90823c940906090414m714ab8b5o128c329133516618@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=F60AB8F5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 lablgtk:01 camldebug:01 mingw:01 lablgtk:01 ocaml:01 camldebug:01 gtkthread:01 emacs:01 breakpoints:01 emacs:01 incorrectly:01 Dmitry Bely a écrit : > On Tue, Jun 9, 2009 at 11:17 AM, Matthieu > Dubuget wrote: >> Hello, >> >> I'm trying to use camldebug. But I'm afraid I'm accumulating difficulties: >> >> - under mingw >> - lablgtk2 + multithreaded app > > Ocaml Win32/MSVC+camldebug+OcaIDE - works for me (single-threaded > lablgtk2 application, but I don't think multiple threads are the real > problem). After some more tests, I managed to have some break points working (only with the simple test program, though). But once GtkThread.main () is run, I lose control on OCD. > >> With a very simple app, the programs run and works once started from >> camldebug (from emacs), but my breakpoints are ignored. > > Can you try to set a breakpoint directly from camldebug? I am afraid > emacs could introduce some line ending inconsistency and so > incorrectly calculate the place. > >> With the more complex app I wanted to work on, the IHM is never shown. >> >> I think that I will revert to the good old Printf method. > > It's up to you but first I would try to find out why it does not work. No more time, I'm afraid ;-) Thanks for your help Matt