[ddbg] Debuggin DLL with Code::Blocks

Matthew Allen mallen at creativelifestyles.removeme.com
Tue Mar 11 12:07:45 PDT 2008


I am trying to debug a DLL with the latest release of DDBG (0.11.3) using CodeBlocks 8.02 release. 

CodeBlocks does not allow you to directly debug a DLL so I select a host exe and set my breakpoints. The Debugger log window however shows errors on trying to set the breakpoints in the DLL's. The DLL's are loaded and the path to the sourcecode is added to the debugger but it DDBG complains that it cannot find the source file. Has anyone successfully debugged a DLL with CodeBlocks? Is there some additional setup I need to do in order to get this to work? Any help is much appreciated. Log is below.

Command-line: C:\DMCompilers\Debugger\ddbg_gdb.bat -nx -fullname  -quiet -args ../../_bin/saWorkspace.exe
Working dir : C:\SoftAutomationD\0_Workspace\saWorkspace\
> set prompt >>>>>>cb_gdb:
Ddbg 0.11.3 beta - D Debugger
Copyright (c) 2007 Jascha Wetzel
see http://ddbg.mainia.de/doc.html for documentation
Loading symbols from ../../_bin/saWorkspace.exe
(gdb) >>>>>>cb_gdb:
...
>>>>>>cb_gdb:
> directory C:/SoftAutomationD/0_Workspace/saWorkspaceUtils/
>>>>>>cb_gdb:
> directory C:/SoftAutomationD/
>>>>>>cb_gdb:
> directory C:/SoftAutomationD/0_Base/saCollections/
>>>>>>cb_gdb:
> directory C:/SoftAutomationD/0_Workspace/saWorkspace/
>>>>>>cb_gdb:
> break "C:/SoftAutomationD/0_Workspace/saWorkspace/saWorkspace.d:190"
Breakpoint 0 at 0x00402197
>>>>>>cb_gdb:
> break "C:/SoftAutomationD/0_Workspace/saWorkspace/saWorkspace.d:187"
Breakpoint 1 at 0x00402183
>>>>>>cb_gdb:
> break "C:/SoftAutomationD/0_Base/saCollections/Variant.d:30"
Source file "C:\SoftAutomationD\0_Base\saCollections\Variant.d" not found
Breakpoint 2 at 0x00000000
>>>>>>cb_gdb:
> break "C:/SoftAutomationD/0_Base/saCollections/saCollections.d:57"
Source file "C:\SoftAutomationD\0_Base\saCollections\saCollections.d" not found
Breakpoint 2 at 0x00000000
>>>>>>cb_gdb:
> run



More information about the Digitalmars-d-debugger mailing list