Thread overview
Valgrind
Apr 14, 2006
Thomas Kuehne
Apr 14, 2006
Charles
Apr 16, 2006
Thomas Kuehne
Apr 16, 2006
Hasan Aljudy
Apr 17, 2006
Thomas Kuehne
Apr 17, 2006
Sean Kelly
Apr 14, 2006
clayasaurus
Apr 17, 2006
Thomas Kuehne
April 14, 2006
Valgrind (http://www.valgrind.org/) - a suite of tools for debugging and profiling programs under Linux - now supports D code compiled with debug symbols.

Inital support was added in revision 5823 and is likely to be included in valgrind-3.2.0.

download:
http://www.valgrind.org/downloads/repository.html

Thomas


April 14, 2006
Very cool!  This works with GDC & DMD ?

Charlie
Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Valgrind (http://www.valgrind.org/) - a suite of tools for
> debugging and profiling programs under Linux - now supports
> D code compiled with debug symbols.
> 
> Inital support was added in revision 5823 and is likely to be
> included in valgrind-3.2.0.
> 
> download:
> http://www.valgrind.org/downloads/repository.html
> 
> Thomas
> 
> 
> -----BEGIN PGP SIGNATURE-----
> 
> iD8DBQFEP2yl3w+/yD4P9tIRAjy9AKDB1zH1eaAavvUjAjfp68WELkOdHwCfZBZm
> PnMhukeskGqaNaTe0vxRTdA=
> =8rwV
> -----END PGP SIGNATURE-----
April 14, 2006
This is great news :)

Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Valgrind (http://www.valgrind.org/) - a suite of tools for
> debugging and profiling programs under Linux - now supports
> D code compiled with debug symbols.
> 
> Inital support was added in revision 5823 and is likely to be
> included in valgrind-3.2.0.
> 
> download:
> http://www.valgrind.org/downloads/repository.html
> 
> Thomas
> 
> 
> -----BEGIN PGP SIGNATURE-----
> 
> iD8DBQFEP2yl3w+/yD4P9tIRAjy9AKDB1zH1eaAavvUjAjfp68WELkOdHwCfZBZm
> PnMhukeskGqaNaTe0vxRTdA=
> =8rwV
> -----END PGP SIGNATURE-----
April 16, 2006
Charles schrieb am 2006-04-14:
> Very cool!  This works with GDC & DMD ?

Yes.

Background:
They did a major rewrite of the handling of debugging symbols.

Thomas


April 16, 2006
Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Charles schrieb am 2006-04-14:
> 
>>Very cool!  This works with GDC & DMD ?
> 
> 
> Yes.
> 
> Background:
> They did a major rewrite of the handling of debugging symbols.
> 
> Thomas
> 
> 
> -----BEGIN PGP SIGNATURE-----
> 
> iD8DBQFEQlx13w+/yD4P9tIRAopzAJ9TFghR2N0dDPHfa7nuIIGeETk56wCfb9lf
> cRnLxfwIbcMJ+4/8vT7MVjc=
> =wEmy
> -----END PGP SIGNATURE-----

Debugger? nice!
does it work in a windows? is there a way to get it working on windows?
April 17, 2006
Hasan Aljudy schrieb am 2006-04-16:
> Debugger? nice!
> does it work in a windows? is there a way to get it working on windows?

Valgrind isn't a "stepping" debugger - it is usually used to profile cache usage, profile the heap, detect memory leaks and detect use of uninitialised values.

Only available on Posix systems and no, Windows isn't a Posix system.

Thomas


April 17, 2006
Thomas Kuehne schrieb am 2006-04-14:
>
> Valgrind (http://www.valgrind.org/) - a suite of tools for debugging and profiling programs under Linux - now supports D code compiled with debug symbols.
>
> Inital support was added in revision 5823 and is likely to be included in valgrind-3.2.0.
>
> download:
> http://www.valgrind.org/downloads/repository.html

update:

Basic demangling of D symbols is now supported.

Sample:
| Conditional jump or move depends on uninitialised value(s)
|    at 0x8055315: uint gcx.Gcx.fullcollect(void *) (gcx.d:59)
|    by 0x8054EED: uint gcx.Gcx.fullcollectshell() (gcx.d:1382)
|    by 0x8053FFC: void * gcx.GC.mallocNoSync(uint) (gcx.d:272)
|    by 0x8053F1E: void * gcx.GC.malloc(uint) (gcx.d:224)
|    by 0x80540E0: void * gcx.GC.calloc(uint, uint) (gcx.d:320)
|    by 0x80539EC: _d_arraysetlength (gc.d:403)
|    by 0x8049E25: void dstress.run.m.memory_management_04.C.func() (memory_management_04.d:15)
|    by 0x8049E5A: _Dmain (memory_management_04.d:24)
|    by 0x804AC5A: main (internal/dmain2.d:92)

See:
http://bugs.kde.org/show_bug.cgi?id=125728

Thomas


April 17, 2006
Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hasan Aljudy schrieb am 2006-04-16:
>> Debugger? nice!
>> does it work in a windows? is there a way to get it working on windows?
> 
> Valgrind isn't a "stepping" debugger - it is usually used to profile
> cache usage, profile the heap, detect memory leaks and detect use of
> uninitialised values.
> 
> Only available on Posix systems and no, Windows isn't a Posix system.

Well, there's always Windows Services for Unix, but as MS has dropped support for it recently it isn't a terribly attractive option.


Sean