Debugging with GDB: Stopping Before Main Program |
---|
Next: Ada Exceptions, Previous: Overloading support for Ada, Up: Ada [Contents][Index]
It is sometimes necessary to debug the program during elaboration, and
before reaching the main procedure.
As defined in the Ada Reference
Manual, the elaboration code is invoked from a procedure called
adainit
. To run your program up to the beginning of
elaboration, simply use the following two commands:
tbreak adainit
and run
.