From: Damien Doligez <damien.doligez@inria.fr>
To: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] 3.07: debug information on camlp4-processed files is missing the file name?
Date: Thu, 8 Jan 2004 10:49:17 +0100 [thread overview]
Message-ID: <ECCD7F48-41BF-11D8-BEFF-00039310CAE8@inria.fr> (raw)
In-Reply-To: <20040108081744.GC27608@fistandantilus.takhisis.org>
On Thursday, January 8, 2004, at 09:17 AM, Stefano Zacchiroli wrote:
> Do this patch change also the output format of -dtypes option when used
> in combination with camlp4?
Yes. It changes the annotations in the parse tree, which are used
for the debugger, the -dtypes option, error messages, backtrace, etc.
> Actually while using camlp4, the .annot file
> generated uses offsets that are all referred to the beginning of file;
> while not using camlp4 offsets are referred to the beginning of each
> line.
The missing file name can be considered a bug. Otherwise, there are
two possible formats: the old format (line 1, offset from the
beginning of the file) and the new format (line, character). We are
working to get rid of the old format before the next release of
O'Caml.
> I'm asking because I've written vim support for .annot files, but
> actually it works only with non camlp4 generated .annot files ...
If possible, you shouldn't count on the line number to be exact.
Start at the beginning of the line, and go forward the given number
of characters. Most of the time, you won't encounter any line break,
but that's not strongly guaranteed.
-- Damien
-------------------
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
next prev parent reply other threads:[~2004-01-08 9:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-05 19:27 Aleksey Nogin
2004-01-05 20:18 ` Damien Doligez
2004-01-07 5:47 ` Aleksey Nogin
2004-01-07 12:50 ` Damien Doligez
2004-01-08 1:29 ` Aleksey Nogin
2004-01-08 8:17 ` Stefano Zacchiroli
2004-01-08 9:49 ` Damien Doligez [this message]
2004-01-08 15:38 ` skaller
2004-01-09 10:46 ` Damien Doligez
2004-01-10 11:15 ` skaller
2004-01-09 8:41 ` Stefano Zacchiroli
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=ECCD7F48-41BF-11D8-BEFF-00039310CAE8@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@inria.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