Bug 49815 - No need to run pdb2mdb on mono/master
Summary: No need to run pdb2mdb on mono/master
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2016-12-13 13:49 UTC by Marek Habersack
Modified: 2017-03-21 21:18 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Marek Habersack 2016-12-13 13:49:27 UTC
Current mono from master uses Roslyn-based csc for compilation, and the build produces PDB (PPDB, to be exact) instead of MDB files. Trying to run pdb2mdb results in:

Xamarin.Android.Common.targets (_ConvertPdbFiles target) ->
                    :  warning : Index was outside the bounds of the array.  at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32& value) [0x00001] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32[] values) [0x00009] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.MsfDirectory..ctor (Microsoft.Cci.Pdb.PdbReader reader, Microsoft.Cci.Pdb.PdbFileHeader head, Microsoft.Cci.Pdb.BitAccess bits) [0x0006d] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, Microsoft.Cci.Pdb.BitAccess bits, System.Boolean readAllStrings) [0x00016] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, System.Boolean readAllStrings) [0x0000c] in <f7634c2957324437bb1ce816be149881>:0 
                  at Pdb2Mdb.Converter.Convert (System.String filename) [0x00033] in <f7634c2957324437bb1ce816be149881>:0 
                  at Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute () [0x0006a] in <f7634c2957324437bb1ce816be149881>:0 
                    :  warning : Index was outside the bounds of the array.  at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32& value) [0x00001] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32[] values) [0x00009] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.MsfDirectory..ctor (Microsoft.Cci.Pdb.PdbReader reader, Microsoft.Cci.Pdb.PdbFileHeader head, Microsoft.Cci.Pdb.BitAccess bits) [0x0006d] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, Microsoft.Cci.Pdb.BitAccess bits, System.Boolean readAllStrings) [0x00016] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, System.Boolean readAllStrings) [0x0000c] in <f7634c2957324437bb1ce816be149881>:0 
                  at Pdb2Mdb.Converter.Convert (System.String filename) [0x00033] in <f7634c2957324437bb1ce816be149881>:0 
                  at Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute () [0x0006a] in <f7634c2957324437bb1ce816be149881>:0 
                    :  warning : Index was outside the bounds of the array.  at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32& value) [0x00001] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.BitAccess.ReadInt32 (System.Int32[] values) [0x00009] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.MsfDirectory..ctor (Microsoft.Cci.Pdb.PdbReader reader, Microsoft.Cci.Pdb.PdbFileHeader head, Microsoft.Cci.Pdb.BitAccess bits) [0x0006d] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, Microsoft.Cci.Pdb.BitAccess bits, System.Boolean readAllStrings) [0x00016] in <f7634c2957324437bb1ce816be149881>:0 
                  at Microsoft.Cci.Pdb.PdbFile.LoadFunctions (System.IO.Stream read, System.Boolean readAllStrings) [0x0000c] in <f7634c2957324437bb1ce816be149881>:0 
                  at Pdb2Mdb.Converter.Convert (System.String filename) [0x00033] in <f7634c2957324437bb1ce816be149881>:0 
                  at Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute () [0x0006a] in <f7634c2957324437bb1ce816be149881>:0
Comment 1 dean.ellis 2017-03-21 21:18:36 UTC
This has been fixed via xamarin-android/master/4e30546f