Hi,

Mono.CompilerServices.SymbolWriter.dll is not dependent on Mono and if you 
prefer it can be converted to VB.NET as well so can be included in vbnc.exe.

The solution depends on your needs. The simplest solution is to use SRE that 
will generate debug information in the native format of the runtime. (pdb on 
MS.NET and mdb on Mono) If mdb generation on MS.NET is only needed to make 
vbnc bootstrap on Mono then either patching vbnc or using pdb2mdb can be 
used because I think in this case there is no use to commit that 
modification to SVN. But if you want build in support for mdb format in vbnc 
even when running on MS.NET a new optional feature (along with a command 
line option to enable it) should be added to the compiler source code to 
generate mdb files.

BTW Rolf, is the AscW patch OK to commit or do you have any comments? (I 
don't want to mess up the compiler.:)

Kornél

----- Original Message ----- 
From: "Miguel de Icaza" <[EMAIL PROTECTED]>
To: "Rolf Bjarne Kvinge" <[EMAIL PROTECTED]>
Cc: "Kornél Pál" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Sunday, September 10, 2006 9:26 PM
Subject: Re: [Mono-list] VBNC in Mono.


> Hello,
>
>> > I think an easier solution is to generate mdb debug info using MS.NET
>> > SRE.
>> > The attached Compiler.diff implements this hack.
>> The problem with this solution is that it will introduce a dependency on
>> Mono (it needs a reference to Mono.CompilerServices.SymbolWriter.dll). It
>> might be better to check if Mono.CompilerServices.SymbolWriter.dll is
>> available and if it is use the mono symbolwriter, otherwise use the
>> default MS symbolwriter.
>
> Yes;
>
> I got the impression that it would have been possible to use the .NET
> Symbol Writer interface with a few hacks in mcs.
>
> If I remember correctly, and this is a very blurry topic to me, we were
> missing a way of activating the symbol writer, or we could not figure it
> out a few years ago, so we came up with this.
>
> But nowadays I get the impression (maybe someone proposed a patch, or
> there are other reference compilers that do this) that it is possible to
> do this with pure managed code.
>
> On Mono we could just hook the Mono SymbolWriter behind the official
> API, but as I said, this is a very blurry topic to me, I do not remember
> the details, its been at least two years since I looked at this.
>
>> Vbnc does not always emit correct symbol information, +/-1 line is 
>> normal,
>> even more in some cases.
>>
>> Rolf
>>
>> -- 
>> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>>
>>
> -- 
> Miguel de Icaza <[EMAIL PROTECTED]>
> Novell, Inc. 

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to