Next: Attaching to a Running Process, Up: Program Built with Foreign Tools and DLL Built with GCC/GNAT
$ gdb -nw test.dll
(gdb) break ada_dll
GDB
.
(gdb) exec-file main.exe
(gdb) run
This will run the program until it reaches the breakpoint that has been set. From that point you can use the standard way to debug a program as described in (see Running and Debugging Ada Programs).
It is also possible to debug the DLL by attaching to a running process.