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 XAA22267; Sat, 15 Sep 2001 23:16:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA22278 for ; Sat, 15 Sep 2001 23:16:57 +0200 (MET DST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f8FLGur07035; Sat, 15 Sep 2001 23:16:56 +0200 (MET DST) Received: from localhost (patrick@localhost) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f8FLGkI38020; Sat, 15 Sep 2001 17:16:46 -0400 (EDT) (envelope-from patrick@watson.org) Date: Sat, 15 Sep 2001 17:16:45 -0400 (EDT) From: Patrick M Doane To: Xavier Leroy cc: caml-list@inria.fr Subject: Re: [Caml-list] OCAMLRUNPARAM and backtraces In-Reply-To: <20010915101532.B15229@pauillac.inria.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This made things work, thanks! Would some modification to byterun/backtrace.c like this help for future users? events = read_debug_info(); if (events == Val_false) { if (backtrace_pos > 0) { fprintf(stderr, "No debug information - please recompile with -g option\n"); } return; } Patrick On Sat, 15 Sep 2001, Xavier Leroy wrote: > > I'm wondering if anyone might have any ideas why setting OCAMLRUNPARAM to > > include backtraces just doesn't work for me. > > You need to compile and link with ocamlc -g, otherwise the bytecode > executable doesn't contain the required source<->code correspondence > information. > > - Xavier Leroy > ------------------- 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