symreader-converter
symreader-converter copied to clipboard
Support converting embedded Pdbs to XML
The APIs I needed weren't public. Maybe I missed something? Feel free to push directly to the PR branch to fix.
See https://github.com/dotnet/metadata-tools/blob/555fdc5c22d4bed4a2dd306b528e0c04e1c2ac23/src/mdv/Mdv.cs#L112
I'm sorry, I don't quite understand how to use the link you provided to get rid of reflection here.
My task is given a MetadataReaderProvider
how to obtain the uncompressed byte[]
of the embedded Pdb or a Stream
that I could pass to the Pdb2Xml dumper.
I see. You can use MetadataReader.MetadataPointer and MetadataReader.Length to read the data.
I'm sorry again, I'm not well-versed in pointers and unsafe code, so I really don't know how to do this.
It would be great if you could just do it yourself when you have time (not urgent).
I think PEReader should be able to read from an RVA given the position and size, and fill a byte array. Not sure if disk layout/memory layout of the PE format is relevant here.