On 28.10.2011 02:57, Vladimir Panteleev wrote:
On Fri, 28 Oct 2011 03:45:11 +0300, Andrej Mitrovic
<andrej.mitrov...@gmail.com> wrote:

This is awesome and I was just about to request for something like
this too. Great job!

What is not awesome is that DMD spits out map files with invalid code
points. :(

DMapTreeMap>rdmd treemapgen.d test13_2056.map out.json
std.utf.UTFException@std\utf.d(637): Invalid UTF-8 sequence (at index
15342)

I've checked it with an editor and there are tons of invalid code
points in the map file.

Ah, it shouldn't fail on that... the original D1 code I recycled worked
just fine on arbitrary encodings, but D2's splitLines can't handle bad
UTF. Anyway, fixed.


Pretty cool tool :-)

The map file generated by optlink is not UTF8, it uses compressed symbols, that can be expanded with demangle.decodeDmdString before demangling.

Please also note that the map file is often corrupt:
http://d.puremagic.com/issues/show_bug.cgi?id=6673

which could lead to bad computed sizes.



Reply via email to