[Mono-devel-list] Patch for generating debug info in System.Reflection.Emit

Lluis Sanchez lluis at ximian.com
Tue May 17 11:25:17 EDT 2005


Hi!

This patch adds some basic support for generating debug info in SRE. It
implements ModuleBuilder.DefineDocument and
ILGenerator.MarkSequencePoint, and should be enough for most of
compilers. With this patch, Boo and IKVM can generate correct debug
info.

The symbol writer is still implemented in
Mono.CompilerServices.SymbolWriter. I added a wrapper class that
implements ISymbolWritter and which is created by ModuleBuidler using
reflection. This class just forwards the calls to MonoSymbolWriter (the
one used by mcs).

There is also a patch for reflection.c, which is a workaround for bug
#74914. With this patch, MethodBuilder objects will return the correct
token value after the module is saved. This fixes the problem because
the debug info is generated after saving the module.

I'll commit if there are no objections.
Lluis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metadata.diff
Type: text/x-patch
Size: 1056 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050517/9e15ac8d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mono.CompilerServices.SymbolWriter.diff
Type: text/x-patch
Size: 8789 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050517/9e15ac8d/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sre.diff
Type: text/x-patch
Size: 10763 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050517/9e15ac8d/attachment-0002.bin 


More information about the Mono-devel-list mailing list