Debugging with GDB: Stopping Before Main Program

Next: Ada Exceptions, Previous: Additions to Ada, Up: Ada [Contents][Index]

#### 15.4.9.4 Stopping at the Very Beginning

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`.