From: Mark Shinwell <mshinwell@janestreet.com>
To: Pierre-Marie de Rodat <pmderodat@kawie.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] DWARF output for native-code
Date: Mon, 19 Nov 2012 16:05:37 +0000 [thread overview]
Message-ID: <CAM3Ki753N-DMwNgHQJWHhgEJJa1uZ8Jhdv4ocj4hBShz6viDoA@mail.gmail.com> (raw)
In-Reply-To: <CADr9k3aftBRVnpDPUxWqH0djaJ+M_ui23fQ7qZZUE4f=YskhBA@mail.gmail.com>
On 19 November 2012 15:37, Pierre-Marie de Rodat <pmderodat@kawie.fr> wrote:
> I’ve discovered that a « dwarf » branch already exist
> on the repository: it is actively developped by « shinwell » 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="foo", arg2=64, arg3=<foo.ml:19>,
arg4="some string") at foo.ml:9
9 let blah2 arg1 arg2 arg3 arg4 =
(gdb) show lang
The current source language is "auto; currently ocaml".
(gdb) step
10 let x = Printf.sprintf "42%d%s" 64 arg1 in
(gdb) step
Printf.sprintf (fmt="42%d%s") at printf.ml:679
679 let sprintf fmt = ksprintf (fun s -> s) fmt;;
(gdb) step
Printf.ksprintf (k=<printf.ml:679>) at printf.ml:675
675 let ksprintf k =
prev parent reply other threads:[~2012-11-19 16:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-19 15:37 Pierre-Marie de Rodat
2012-11-19 16:05 ` Mark Shinwell [this message]
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=CAM3Ki753N-DMwNgHQJWHhgEJJa1uZ8Jhdv4ocj4hBShz6viDoA@mail.gmail.com \
--to=mshinwell@janestreet.com \
--cc=caml-list@inria.fr \
--cc=pmderodat@kawie.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