Stopping Before Main Program (Debugging with ROCGDB)

Next: Ada Exceptions, Previous: Overloading support for Ada, Up: Ada [Contents][Index]

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