From: Gautier <gautier@fakeaddress.nil>
Subject: Re: QtSql problem
Date: Fri, 06 Feb 2009 09:31:51 +0100
Date: 2009-02-06T09:31:51+01:00 [thread overview]
Message-ID: <498bf574_4@news.bluewin.ch> (raw)
In-Reply-To: <fed782eb-9d95-4de5-950f-8d0f2bfd1b80@r37g2000prr.googlegroups.com>
Vadim Godunko wrote:
> Can you please rebuild your program with the -E binder's switch? This
> enables to store traceback information in the exception occurrence, so
> we can see where the exception occurs.
He also may need to display the traceback...
------------------------------------------------------------------------------
-- 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;
_________________________________________________________
Gautier's Ada programming -- http://sf.net/users/gdemont/
NB: For a direct answer, e-mail address on the Web site!
next prev parent reply other threads:[~2009-02-06 8:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-06 4:43 QtSql problem tworoses1
2009-02-06 8:27 ` Vadim Godunko
2009-02-06 8:31 ` Gautier [this message]
2009-02-06 18:21 ` tworoses1
2009-02-06 19:56 ` Gautier
2009-02-06 20:44 ` tworoses1
2009-02-06 22:51 ` sjw
2009-02-08 0:09 ` tworoses1
2009-02-09 14:04 ` Vadim Godunko
2009-02-09 15:55 ` Ivan Levashew
2009-02-10 10:32 ` Vadim Godunko
2009-02-13 4:21 ` tworoses1
2009-02-07 21:17 ` Georg Bauhaus
2009-02-10 3:09 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox