Next: , Up: Debugging a DLL   [Contents][Index]


7.4.7.26 Program and DLL Both Built with GCC/GNAT

This is the simplest case. Both the DLL and the program have GDB compatible debugging information. It is then possible to break anywhere in the process. Let’s suppose here that the main procedure is named ada_main and that in the DLL there is an entry point named ada_dll.

The DLL (Introduction to Dynamic Link Libraries (DLLs)) and program must have been built with the debugging information (see GNAT -g switch). Here are the step-by-step instructions for debugging it:

At this stage a breakpoint is set inside the DLL. From there on you can use the standard approach to debug the whole program (Running and Debugging Ada Programs).