* Tracing procedural calls when an exception is raised
@ 2012-01-20 15:03 tonyg
2012-01-20 15:08 ` mockturtle
0 siblings, 1 reply; 5+ messages in thread
From: tonyg @ 2012-01-20 15:03 UTC (permalink / raw)
When using the gnat compiler is there a way to get hold of the
procedure or function stack when an exception is called.
I am using at the moment
Ada.Exceptions.Exception_Information(Error)
within an exception handler and I am looking for better information
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tracing procedural calls when an exception is raised
2012-01-20 15:03 Tracing procedural calls when an exception is raised tonyg
@ 2012-01-20 15:08 ` mockturtle
2012-01-20 16:44 ` Simon Wright
0 siblings, 1 reply; 5+ messages in thread
From: mockturtle @ 2012-01-20 15:08 UTC (permalink / raw)
Yes, you need to use a special option at compile time and then addr2line. See
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Tracebacks-From-an-Unhandled-Exception.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tracing procedural calls when an exception is raised
2012-01-20 15:08 ` mockturtle
@ 2012-01-20 16:44 ` Simon Wright
2012-01-20 16:52 ` tonyg
0 siblings, 1 reply; 5+ messages in thread
From: Simon Wright @ 2012-01-20 16:44 UTC (permalink / raw)
mockturtle <framefritti@gmail.com> writes:
> Yes, you need to use a special option at compile time and then addr2line. See
>
> http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Tracebacks-From-an-Unhandled-Exception.html
Are you using Mac OS X? if so, see http://goo.gl/XGpQf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tracing procedural calls when an exception is raised
2012-01-20 16:44 ` Simon Wright
@ 2012-01-20 16:52 ` tonyg
2012-01-20 17:16 ` Dmitry A. Kazakov
0 siblings, 1 reply; 5+ messages in thread
From: tonyg @ 2012-01-20 16:52 UTC (permalink / raw)
On Jan 20, 4:44 pm, Simon Wright <si...@pushface.org> wrote:
> mockturtle <framefri...@gmail.com> writes:
> > Yes, you need to use a special option at compile time and then addr2line. See
>
> >http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Tracebacks-From-...
>
> Are you using Mac OS X? if so, seehttp://goo.gl/XGpQf
haha..no , using Debian :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tracing procedural calls when an exception is raised
2012-01-20 16:52 ` tonyg
@ 2012-01-20 17:16 ` Dmitry A. Kazakov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry A. Kazakov @ 2012-01-20 17:16 UTC (permalink / raw)
On Fri, 20 Jan 2012 08:52:29 -0800 (PST), tonyg wrote:
> On Jan 20, 4:44�pm, Simon Wright <si...@pushface.org> wrote:
>> mockturtle <framefri...@gmail.com> writes:
>>> Yes, you need to use a special option at compile time and then addr2line. See
>>
>>>http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Tracebacks-From-...
>>
>> Are you using Mac OS X? if so, seehttp://goo.gl/XGpQf
>
> haha..no , using Debian :)
Then see:
GNAT.Traceback.Symbolic.Symbolic_Traceback
It should work under Debian.
You can even let the GPS open the file and jump to the specified source
line from the traceback.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-20 17:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20 15:03 Tracing procedural calls when an exception is raised tonyg
2012-01-20 15:08 ` mockturtle
2012-01-20 16:44 ` Simon Wright
2012-01-20 16:52 ` tonyg
2012-01-20 17:16 ` Dmitry A. Kazakov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox