From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA26777 for caml-red; Fri, 7 Jul 2000 16:32:26 +0200 (MET DST) 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 DAA04816 for ; Thu, 6 Jul 2000 03:26:43 +0200 (MET DST) Received: from emissary.ot.com.au (emissary.ot.com.au [203.42.249.64]) by concorde.inria.fr (8.10.0/8.10.0) with SMTP id e661QdX05402 for ; Thu, 6 Jul 2000 03:26:40 +0200 (MET DST) Received: (qmail 11593 invoked from network); 6 Jul 2000 01:26:35 -0000 Received: from unknown (HELO druid.in.ot.com.au) (10.70.80.5) by 10.70.15.1 with SMTP; 6 Jul 2000 01:26:35 -0000 Received: (qmail 3281 invoked from network); 6 Jul 2000 01:26:34 -0000 Received: from unknown (HELO in.ot.com.au) (10.70.82.63) by druid.in.ot.com.au with SMTP; 6 Jul 2000 01:26:34 -0000 Message-ID: <3963E04A.B1B04F95@in.ot.com.au> Date: Thu, 06 Jul 2000 11:26:34 +1000 From: Max Skaller Organization: Open Telecommunications Ltd X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: gerd@gerd-stolpmann.de CC: John Max Skaller , Patrick M Doane , Xavier Leroy , Scott McPeak , caml-list@inria.fr Subject: Re: how to set breakpoint at exception throw? References: <3961F7FA.643D7863@maxtal.com.au> <0007042058420E.14914@ice> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr Gerd Stolpmann wrote: > In general, you are right; the problem is that I do not have access to the > location in the source code where the exception happened. I'm interested in the > line number and the file name of the statement that originally caused the > exception. Ah. Yes, in C you can get the current line number with a __LINE__ macro. (And in C++, this creates havoc for the One Definition Rule :-) -- John (Max) Skaller at OTT [Open Telecommications Ltd] mailto:maxs@in.ot.com.au -- at work mailto:skaller@maxtal.com.au -- at home