Matthew Allen
2008-03-11 19:07:45 UTC
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\
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:
...
Breakpoint 2 at 0x00000000
Breakpoint 2 at 0x00000000
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\
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:
...
directory C:/SoftAutomationD/0_Workspace/saWorkspaceUtils/
directory C:/SoftAutomationD/
directory C:/SoftAutomationD/0_Base/saCollections/
directory C:/SoftAutomationD/0_Workspace/saWorkspace/
break "C:/SoftAutomationD/0_Workspace/saWorkspace/saWorkspace.d:190"
Breakpoint 0 at 0x00402197directory C:/SoftAutomationD/
directory C:/SoftAutomationD/0_Base/saCollections/
directory C:/SoftAutomationD/0_Workspace/saWorkspace/
break "C:/SoftAutomationD/0_Workspace/saWorkspace/saWorkspace.d:190"
break "C:/SoftAutomationD/0_Workspace/saWorkspace/saWorkspace.d:187"
Breakpoint 1 at 0x00402183break "C:/SoftAutomationD/0_Base/saCollections/Variant.d:30"
Source file "C:\SoftAutomationD\0_Base\saCollections\Variant.d" not foundBreakpoint 2 at 0x00000000
break "C:/SoftAutomationD/0_Base/saCollections/saCollections.d:57"
Source file "C:\SoftAutomationD\0_Base\saCollections\saCollections.d" not foundBreakpoint 2 at 0x00000000
run