valgrind? electric fence?

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Jun 3 12:45:47 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frank Benoit schrieb am 2007-06-03:
> Jason House schrieb:
>> Does anyone know if valgrind or similar products can work with D?  If
>> so, how?  If not, does anyone know of the next best thing?  (like
>> running the GC after every line of code in a particular function?)
>> 
>
> I never used valgrind, but i know that there are ppl that use valgrind
> on linux with D (probably GDC).

Simply compile the application with debugging information and use
valgrind as you would do with a plain C application. Valgrind's bug
tracker contains a patch to add D demangler support. The demangling 
information is dated and using http://ddemangled.kuehne.cn
(either as a standalone or a pluging) should result in better results.

Thomas


-----BEGIN PGP SIGNATURE-----

iQIVAwUBRmMeD7ZlboUnBhRKAQLREg//Z7al9b+OsWi843+T5mpSQ85HTTbEj91G
OWhwRhD2ktjJCYFRe4U5uowVVpsGp96jiGeXM6eE2HCn23U/crpDaDh6bkPAQPfe
J8yJPyWfcfNE3vdyoK2QGOGjHV4cTRCgjAAHv5VbDlMuOGtwK9g1QuF8PfWBB+01
B8ItDjDkt8JL3d382FzsNANl0ZCQeWFU+Zk4OlLOKS0plgwIUJPddFRQRjQoQTnb
DZ2jARDErE75jFpdaWNP9ysTbUgUCjg/ipwFZLS33oAKZxa7A/5Tf9q4yLTpIcK6
Gzz5fWRJj6t6FZsD2RHWmKS9HJlXzZCjD+bceV0jqZKWcaU6Fjr2NQKh2dM9H1kH
yu3Z33g3aTNOQPgWLDm0al3FpxlMRDgR54v9qhWLygsRAdSClOOqeuhyGLSPQPcI
2rs12wOXEECwHfK85sJToQ0skflaGADg/5cE3HJD/Rw5LioB2G5Pfqh1e6Ad/iKC
RPOSgBlMDiUVQbH3EsJTCZ7p9mNs9PXVlIiCDEWuR7qurnYQtFSs7wto6Run86fe
wrLQwuO6WpZ1POgb2MD82mYuL+Is6PZMaGKoh8j8oI7yLZjMQttYv9w4rBjEQ/OI
nOsfmncuNPh4rkkiaObDwtSSShjIo8/XgV/AgpBY/5wv29nDtOKTFxxezwuQqHu1
d1nwGsf/1cY=
=uadc
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list