English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
How do I get a stack trace in a running program?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-01-11 (11:00)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] How do I get a stack trace in a running program?
Richard Jones wrote:
> On Tue, Jan 11, 2005 at 11:30:11AM +0100, Alex Baretta wrote:
> [...]
> 
> Depending on how busy I am today, I might be motivated enough to try
> and patch the OCaml sources so that we can get backtraces as strings ...
> I'll let you know.
> 
> Rich.
> 
> -- 
> 

This is fairly easy. All you need to do is remove enough "static" 
function attributes from the byterun/backtrace.c source file and add the 
corresponding prototypes in byterun/backtrace.h.

Alex

-- 
*********************************************************************
http://www.barettadeit.com/
Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)
<http://www.asxcaml.org/>

The FreerP Project
<http://www.freerp.org/>