From: Gautier write-only <gautier_niouzes@hotmail.com>
Subject: Re: Addr2Line2Locations for GPS
Date: Tue, 19 Jan 2010 05:49:42 -0800 (PST)
Date: 2010-01-19T05:49:42-08:00 [thread overview]
Message-ID: <a495a30d-9a26-4e8e-8675-7e96a94ae2e3@r19g2000yqb.googlegroups.com> (raw)
In-Reply-To: ccad3ad4-f9d4-4481-877f-23e4fb346f76@k17g2000yqh.googlegroups.com
A variant (compatible with older GNAT's): instanciating the TB_Wrap
below and gnatmake that instanciation.
But I guess that Emmanuel wanted to say that future versions (which
are present ones in other time-spaces) spontaneously display a
symbolic trace-back instead of a bunch of addresses. But maybe I'm
just dreaming...
Gautier
------------------------------------------------------------------------------
-- File: TB_Wrap.ads
-- Description: Trace-back wrapper for GNAT 3.13p+ (spec.)
------------------------------------------------------------------------------
generic
with procedure My_main_procedure;
procedure TB_Wrap;
------------------------------------------------------------------------------
-- File: TB_Wrap.adb
-- Description: Trace-back wrapper for GNAT 3.13p+ (body)
------------------------------------------------------------------------------
with GNAT.Traceback.Symbolic, Ada.Exceptions, Ada.Text_IO;
use Ada.Exceptions, Ada.Text_IO;
procedure TB_Wrap is
-- pragma Compiler_options("-g");
-- pragma Binder_options("-E");
begin
My_main_procedure;
exception
when E: others =>
New_Line;
Put_Line("--------------------[ Unhandled
exception ]-----------------");
Put_Line(" > Name of exception . . . . .: " &
Ada.Exceptions.Exception_Name(E) );
Put_Line(" > Message for exception . . .: " &
Ada.Exceptions.Exception_Message(E) );
Put_Line(" > Trace-back of call stack: " );
Put_Line( GNAT.Traceback.Symbolic.Symbolic_Traceback(E) );
end TB_Wrap;
next prev parent reply other threads:[~2010-01-19 13:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-16 0:04 Addr2Line2Locations for GPS Hibou57 (Yannick Duchêne)
2010-01-16 2:25 ` Randy Brukardt
2010-01-16 4:40 ` Hibou57 (Yannick Duchêne)
2010-01-18 1:38 ` Hibou57 (Yannick Duchêne)
2010-01-16 8:45 ` Dmitry A. Kazakov
2010-01-18 10:59 ` Emmanuel Briot
2010-01-18 13:38 ` Hibou57 (Yannick Duchêne)
2010-01-19 10:23 ` franck
2010-01-19 13:49 ` Gautier write-only [this message]
2010-01-19 15:37 ` Ludovic Brenta
2010-01-19 15:49 ` Ludovic Brenta
2011-01-29 13:23 ` leandrohbatista
2011-02-02 16:46 ` Yannick Duchêne (Hibou57)
2011-02-03 9:19 ` leandrohbatista
2011-02-03 13:40 ` Yannick Duchêne (Hibou57)
2011-02-03 14:00 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox