stackstack-tracetraceadagnat

Dump current stack in GNAT compiled Ada?


In java I use this method sometimes to see where I am in the current stack:

http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.html#dumpStack()

I am new to the Ada world, but am curious if there is anything similar?


Solution

  • Viewing the traceback stack is compiler-specific. The GNAT Ada compiler provides some packages to manage this (in conjunction with some compile/link options). See the Stack Traceback section of the GNAT User's Guide for information and examples.