mainstringargs
mainstringargs

Reputation: 14381

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?

Upvotes: 3

Views: 1287

Answers (1)

Marc C
Marc C

Reputation: 8522

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.

Upvotes: 3

Related Questions