comp.lang.ada
 help / color / mirror / Atom feed
From: "Christophe Gouiran" <christophe@e-motive.com>
Subject: using package GNAT.Traceback
Date: 2000/04/12
Date: 2000-04-12T00:00:00+00:00	[thread overview]
Message-ID: <C01J4.377$ev4.340097@nnrp4.proxad.net> (raw)

Hi everyone, do you know how to use package GNAT.Traceback ?

In my source i write :

procedure IExplore is
   dummy : natural;
begin

   dummy := -1; -- will raise constraint_error

   exception when e: others =>
      declare
         tarray : Tracebacks_Array(1 .. 100);
         len : integer;
      begin
         Call_Chain(tarray, len);

         put_line("Callback number : " & integer'image(len));


      end;

end IExplore;


But i have the output :
Callback number :  0

I have gnat 3.12p under Win 2000 .
If someone knows the answer ...






             reply	other threads:[~2000-04-12  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-12  0:00 Christophe Gouiran [this message]
2000-04-12  0:00 ` using package GNAT.Traceback Robert Dewar
2000-04-12  0:00   ` Chad R. Meiners
2000-04-13  0:00     ` Robert Dewar
2000-04-13  0:00     ` Christophe Gouiran
2000-04-13  0:00       ` Chad R. Meiners
2000-04-14  0:00         ` Robert Dewar
2000-04-14  0:00           ` Florian Weimer
2000-04-14  0:00             ` Pascal Obry
2000-04-14  0:00         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox