[ddbg] Debuggin DLL with Code::Blocks

Jascha Wetzel firstname at mainia.de
Thu Mar 13 01:17:42 PDT 2008


Matthew Allen wrote:
> Sorry to be a pain. I am linking my DLL to the exe statically. The variant.d file is in the DLL sourcecode. When I load the symbols from saWorkspace.exe it does not know about variant at that point.

oh right, you need to execute the program in the debugger until the 
point where the DLL has been loaded (ddbg will log that).
you can for example set a breakpoint in main() and run the debuggee with 
something like this:
 > bp mySourceFileContainingMain.d:123
 > r

when the breakpoint is hit, lsm will list the modules.

> CodeBlocks sets the breakpoints before running and so the symbols for the saCollections.dll have not been loaded before the breakpoint is set.

that is not a problem. those breakpoints will stay inactive until the 
appropriate module are loaded.

> I have tried looking at the command line for ddbg and gdb to see if I can add the DLL on the command line so it get's loaded right away. Is this possible? I did not see an option for that.

that's not possible. you'll have to make the program load the DLL as 
described above.


More information about the Digitalmars-d-debugger mailing list