From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 6FC847EE20 for ; Mon, 19 Nov 2012 17:05:40 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of mshinwell@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="mshinwell@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of mshinwell@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="mshinwell@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@tot-dmz-mxout1.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="postmaster@tot-dmz-mxout1.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjIBAIVYqlAmacjlmWdsb2JhbABFwzorAQEBAQEICwsHFCeCHgEBBScZAQE3AQ8LCw0uIhIBBQEcBhMIiAUDAaFTinSENwEFjnUGjDSFDZV/gRyNRhYphBGCGQ X-IronPort-AV: E=Sophos;i="4.83,280,1352070000"; d="scan'208";a="182194733" Received: from mx5.janestreet.com (HELO tot-dmz-mxout1.janestreet.com) ([38.105.200.229]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Nov 2012 17:05:39 +0100 Received: from tot-smtp.delacy.com ([172.27.22.35] helo=tot-is-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1TaTqs-0003BW-6b for caml-list@inria.fr; Mon, 19 Nov 2012 11:05:38 -0500 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-is-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TaTqs-0005Mv-5u for caml-list@inria.fr; Mon, 19 Nov 2012 11:05:38 -0500 Received: from mail-qc0-f198.google.com ([209.85.216.198]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1TaTqs-0003rS-4H for caml-list@inria.fr; Mon, 19 Nov 2012 11:05:38 -0500 Received: by mail-qc0-f198.google.com with SMTP id e13so8622073qcs.9 for ; Mon, 19 Nov 2012 08:05:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EHlBwck1fg1UhZXH6mAJrnFqHcsTiFLOCiRDWY5aDVw=; b=k+PfW6rI4+2XEXbScUHn6pJF65XxNUEmz1kC5LftD5gFOIK+oLYC3EOSkI2gfOt1Mp 67y8BFCMlZKu/O26D7AoGDz/pPfer6irfiYNZ+4ASNgO7nG3zTuEuPrHtsMIBh5/Zdcf 2A0IV4VSB6DBe3J8iUPA2ZT/WymeJozmOnkCA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=EHlBwck1fg1UhZXH6mAJrnFqHcsTiFLOCiRDWY5aDVw=; b=Ctza43+s/Haxbwlw3jot4Ktr1Pci+5X4ST0WdSZ2IiaJUWNnrYs0tRSfieE4kAg3KJ iy5fzKQvl4hCT1GYuE1e7nK4OQHpW0CCQ6m50+BVdsJcyn+1VDDXkNAPRPPDFnjRl/dj aZSYSZBaKHACFuPja6+QsVZXby4mlWGGEVgkPp4u+bS/aE24nM3e0ntstH0ZZILgKvHZ cIyDDVM+RQ8dMs1kVyOI2HrABIMWoU7nr5iJOKNX1ZtiX5oYhfvXYSBwJp7MIpPN+Lsd optIbufRiKXbGIk7fJU3TLSnFOrQFHCV6Q0zWty9E7hGOkeBbefu8gKoR/28DIr/MKnk mf3w== Received: by 10.52.26.176 with SMTP id m16mr17133482vdg.64.1353341137949; Mon, 19 Nov 2012 08:05:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.26.176 with SMTP id m16mr17133473vdg.64.1353341137871; Mon, 19 Nov 2012 08:05:37 -0800 (PST) Received: by 10.58.86.105 with HTTP; Mon, 19 Nov 2012 08:05:37 -0800 (PST) X-Originating-IP: [80.169.196.210] In-Reply-To: References: Date: Mon, 19 Nov 2012 16:05:37 +0000 Message-ID: From: Mark Shinwell To: Pierre-Marie de Rodat Cc: caml-list@inria.fr Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmKjfJVmCfOVAYuus0J/fSaRRNPPPPDpZMleaH2wtQ/bh6rrNoO51mDzUuwVVDedmBWUgCDD7vUyIWNPFppBhRms2C7N9KGRCt1dXek37s8+HlkNO2/BdA5GFvNlJ7/ntBzzkygFVHvwQLwKeZye2Suj/IruQ== X-Validation-by: mshinwell@janestreet.com Subject: Re: [Caml-list] DWARF output for native-code On 19 November 2012 15:37, Pierre-Marie de Rodat wrote: > I=92ve discovered that a =AB dwarf =BB branch already exist > on the repository: it is actively developped by =AB shinwell =BB since > september. Even if it looks far from completion, it seems to have the > same goal. Yeah, I'm working on full DWARF output for ocamlopt, including the appropriate gdb support. This is a fairly complicated undertaking, shall we say, and it will be a while until it's ready for a first release. This work should also permit reverse debugging of OCaml programs using gdb. A very small snippet of the work in progress is below. Mark -- (gdb) b Foo.blah2 Breakpoint 1 at 0x408d00: file foo.ml, line 9. (gdb) r Starting program: foo Breakpoint 1, Foo.blah2 (arg1=3D"foo", arg2=3D64, arg3=3D, arg4=3D"some string") at foo.ml:9 9 let blah2 arg1 arg2 arg3 arg4 =3D (gdb) show lang The current source language is "auto; currently ocaml". (gdb) step 10 let x =3D Printf.sprintf "42%d%s" 64 arg1 in (gdb) step Printf.sprintf (fmt=3D"42%d%s") at printf.ml:679 679 let sprintf fmt =3D ksprintf (fun s -> s) fmt;; (gdb) step Printf.ksprintf (k=3D) at printf.ml:675 675 let ksprintf k =3D