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 OAA10081; Wed, 14 Nov 2001 14:21:11 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA09276 for ; Wed, 14 Nov 2001 14:21:10 +0100 (MET) Received: from pochi.inria.fr (pochi.inria.fr [128.93.8.128]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fAEDKc520989; Wed, 14 Nov 2001 14:20:38 +0100 (MET) Received: (from mentre@localhost) by pochi.inria.fr (8.11.1/8.10.0) id fAEDKbs16437; Wed, 14 Nov 2001 14:20:37 +0100 X-Authentication-Warning: pochi.inria.fr: mentre set sender to David.Mentre@inria.fr using -f To: "Marcin 'Qrczak' Kowalczyk" Cc: caml-list@inria.fr Subject: Re: [Caml-list] A few questions regarding the compiler References: <9smdf7$511$1@qrnik.zagroda> <9ssfsl$fa4$1@qrnik.zagroda> From: David Mentre Date: 14 Nov 2001 14:20:37 +0100 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk "Marcin 'Qrczak' Kowalczyk" writes: > It would be ideal to be able to obtain the backtrace programmatically > after I catch an exception. Maybe I have missed something but the point of raising an exception and getting its location has already been discussed on the list: http://caml.inria.fr/archives/200007/msg00028.html (look also at the thread) To generate a backtrace, just do an "assert(false)" with the environment variable OCAMLRUNPARAM set to "b=1" (without quotes, see man ocamlrun). > I could even think about translating positions to real source in this > case. Is that possible? Yes. Somebody has written a tool to convert a trace in source position: http://caml.inria.fr/archives/200109/msg00111.html Best regards, d. -- David.Mentre@inria.fr Opinions expressed here are only mine. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr