digitalmars.D.debugger - DMD sometimes generates faulty debug lines information
- Jascha Wetzel (10/10) Mar 14 2007 Everyone using Ddbg with larger than tiny test-programs has probably
- Simen (10/52) Mar 16 2007 I don't know if its related, but in my current project ddbg stopped work...
- Jascha Wetzel (3/61) Mar 20 2007 this problem probably has the same cause.
- Jascha Wetzel (3/14) Mar 20 2007 this is solved in Ddbg 0.0.5
Everyone using Ddbg with larger than tiny test-programs has probably experienced this. What you'll notice is, that although you set a breakopint at some line x (and the breakpoint is actually set at that line, not just skipping non-instruction lines), the debugger will break at some other line y > x. This and similar behaviour has been observed in larger programs (usually with a lot of modules). I'm currently trying to narrow it down to a test case, but without success, so far. I'll have to downsize my larger project step by step... Has anyone seen something like this in as-small-as-possible programs?
Mar 14 2007
I don't know if its related, but in my current project ddbg stopped working with breakpoints altogether: Command-line: C:\ddbg\ddbg_gdb.exe -nx -fullname -quiet -args bin/Debug/TestTopline.exe Working dir : C:\Documents and Settings\simen\My Documents\Projects\TestTopline\set prompt >>>>>>cb_gdb:Ddbg v0.0.4.3 alpha - D Debugger Copyright (c) 2007 Jascha Wetzel http://ddbg.mainia.de/ (gdb) >>>>>>cb_gdb:show versionBreakpoint 0 at 0x00000000set confirm offcb_gdb:set width 0cb_gdb:set height 0cb_gdb:set breakpoint pending oncb_gdb:set print asm-demangle oncb_gdb:set unwindonsignal oncb_gdb:set debugevents oncb_gdb:set new-console oncb_gdb:set disassembly-flavor intelcb_gdb:directory C:/DOCUME~1/simen/MYDOCU~1/Projects/TESTTO~1/cb_gdb:directory C:/cb_gdb:set args buss0708.txtcb_gdb:break "C:/Documents and Settings/simen/My Documents/Projects/TestTopline/in2view.d:418"cb_gdb:Error: couldn't write breakpoint opcode at :0runcb_gdb:Jascha Wetzel <[firstname] mainia.de> Wrote:cb_gdb:Everyone using Ddbg with larger than tiny test-programs has probably experienced this. What you'll notice is, that although you set a breakopint at some line x (and the breakpoint is actually set at that line, not just skipping non-instruction lines), the debugger will break at some other line y > x. This and similar behaviour has been observed in larger programs (usually with a lot of modules). I'm currently trying to narrow it down to a test case, but without success, so far. I'll have to downsize my larger project step by step... Has anyone seen something like this in as-small-as-possible programs?
Mar 16 2007
this problem probably has the same cause. could you try 0.0.5, and tell me if the problem persists? Simen wrote:I don't know if its related, but in my current project ddbg stopped working with breakpoints altogether: Command-line: C:\ddbg\ddbg_gdb.exe -nx -fullname -quiet -args bin/Debug/TestTopline.exe Working dir : C:\Documents and Settings\simen\My Documents\Projects\TestTopline\set prompt >>>>>>cb_gdb:Ddbg v0.0.4.3 alpha - D Debugger Copyright (c) 2007 Jascha Wetzel http://ddbg.mainia.de/ (gdb) >>>>>>cb_gdb:show versionBreakpoint 0 at 0x00000000set confirm offcb_gdb:set width 0cb_gdb:set height 0cb_gdb:set breakpoint pending oncb_gdb:set print asm-demangle oncb_gdb:set unwindonsignal oncb_gdb:set debugevents oncb_gdb:set new-console oncb_gdb:set disassembly-flavor intelcb_gdb:directory C:/DOCUME~1/simen/MYDOCU~1/Projects/TESTTO~1/cb_gdb:directory C:/cb_gdb:set args buss0708.txtcb_gdb:break "C:/Documents and Settings/simen/My Documents/Projects/TestTopline/in2view.d:418"cb_gdb:Error: couldn't write breakpoint opcode at :0runcb_gdb:Jascha Wetzel <[firstname] mainia.de> Wrote:cb_gdb:Everyone using Ddbg with larger than tiny test-programs has probably experienced this. What you'll notice is, that although you set a breakopint at some line x (and the breakpoint is actually set at that line, not just skipping non-instruction lines), the debugger will break at some other line y > x. This and similar behaviour has been observed in larger programs (usually with a lot of modules). I'm currently trying to narrow it down to a test case, but without success, so far. I'll have to downsize my larger project step by step... Has anyone seen something like this in as-small-as-possible programs?
Mar 20 2007
this is solved in Ddbg 0.0.5 I was wrong - DMD's codeview info for source lines is fine. Jascha Wetzel wrote:Everyone using Ddbg with larger than tiny test-programs has probably experienced this. What you'll notice is, that although you set a breakopint at some line x (and the breakpoint is actually set at that line, not just skipping non-instruction lines), the debugger will break at some other line y > x. This and similar behaviour has been observed in larger programs (usually with a lot of modules). I'm currently trying to narrow it down to a test case, but without success, so far. I'll have to downsize my larger project step by step... Has anyone seen something like this in as-small-as-possible programs?
Mar 20 2007