Ddbg 0.0.2 alpha release
Jascha Wetzel
"[firstname]" at mainia.de
Wed Feb 21 05:56:32 PST 2007
it doesn't crash when i do that. maybe you can use the debug build to
get more info (included in the new archive).
there was another issue, though: the source line wasn't detected
correctly with your program. that should be fixed in 0.0.2.2.
http://ddbg.mainia.de/Ddbg-0.0.2.2-alpha.zip
when i debug your program, it looks like this:
C>ddbg.exe torhu.exe
Process started
ntdll.dll loaded
KERNEL32.dll loaded
USER32.dll loaded
GDI32.dll loaded
Unknown breakpoint hit at ntdll.dll (0x7c901230)
->bp t:4
Breakpoint set: torhu.d:4 0x402010
->bp t:6
Breakpoint set: torhu.d:6 0x402013
->r
IMM32.dll loaded
ADVAPI32.dll loaded
RPCRT4.dll loaded
LPK.dll loaded
USP10.dll loaded
msvcrt.dll loaded
Breakpoint 0 hit torhu.d:4 0x402010
void main()
->r
Breakpoint 1 hit torhu.d:6 0x402013
writefln("hello 1");
->ov
hello 1
torhu.d:7 0x40202a
free(cast(void*)1);
->
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at multpool
(0x0040bda1)
->q
torhu wrote:
> Looks interesting. Something that's simpler to use for quick D
> debugging than windbg and msvc. As long as the docs will continue to
> fit on one page, at least.
>
> I tried this:
>
> import std.stdio;
> import std.c.stdlib;
>
> void main()
> {
> writefln("hello 1");
> free(cast(void*)1);
> writefln("hello 2");
> }
>
> I tried setting breakpoints on line 4 and 6, and others too. But ddbg
> just crashes when I use the 'bp' command.
>
>
> Hang on... This is odd, now it crashes when I try to set a breakpoint at
> line 79 of debuggee.d too. It didn't do that five minutes ago. Weird.
More information about the Digitalmars-d-announce
mailing list