Ddbg 0.0.4 alpha release - bug report
dickl
dick221z at yahoo.com
Tue Mar 6 07:10:17 PST 2007
Another bug report...
Debugger crashes when trying to list the class variables. The variable
is a struct which contains an array of stuff.
Source
--------------------
import std.stdio;
int main()
{
Foo f = new Foo;
return 0;
}//end int main()
enum Stuff:ubyte
{
Item1=0,
Item2,
Item3,
Item4,
}//end enum Stuff:ubyte
const uint Num=Stuff.max;
struct Table
{
bool [Num]TableStuff;
}//end struct Table
class Foo
{
char [] FileName="Somefile.txt";
Table t1;
this()
{
writefln(FileName);
}
}//end class F00
Debug results
-------------------------------
> Ddbg v0.0.4.1 alpha - D Debugger
> Copyright (c) 2007 Jascha Wetzel
> http://ddbg.mainia.de/
>
> ->bp test.d:1
> Breakpoint set: test.d:4 0x402010
> ->r
> ntdll.dll loaded
> KERNEL32.dll loaded
> USER32.dll loaded
> GDI32.dll loaded
> Breakpoint 0 hit
> test.d:4 0x402010
> int main()
> ->in
> test.d:6 0x402014
> Foo f = new Foo;
> ->
> test.d:33 0x402030
> this()
> ->
> test.d:35 0x402037
> writefln(FileName);
> ->lsv
> Scope: MFZC4test3Foo test.Foo._ctor
> this [ebp-4] = Error: array cast misalignment
_____________________________________________________
Jascha Wetzel wrote:
> Ddbg is a Win32 D Debugger
>
> http://ddbg.mainia.de/releases.html
>
> This release mainly adds support for type cast and associative arrays.
> Type casts can be used to workaround the missing array and enum support
> in DMD's debug symbols.
More information about the Digitalmars-d-announce
mailing list