Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@@ -0,0 +1,12 @@
thisdir = tools/mdb2ppdb
SUBDIRS =
include ../../build/rules.make
PROGRAM = mdb2ppdb.exe
LOCAL_MCS_FLAGS =
LIB_REFS = Mono.Cecil Mono.Cecil.Mdb
NO_INSTALL = yes
include ../../build/executable.make

View File

@@ -0,0 +1,37 @@
using System;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Mono.Cecil.Mdb;
public class Driver
{
public static void Main (String[] args) {
//
// The assembly itself needs to be changed to add some data needed to
// find the matching .pdb file.
//
if (args.Length != 2) {
Console.Error.WriteLine ("Usage: mdb2pdb <input assembly> <output assembly>");
Environment.Exit (1);
}
string infile = args [0];
string outfile = args [1];
if (infile == outfile) {
Console.Error.WriteLine ("Input and output file names needs to be different.");
Environment.Exit (1);
}
var reader_parameters = new ReaderParameters {
SymbolReaderProvider = new MdbReaderProvider (),
};
using (var module = ModuleDefinition.ReadModule (infile, reader_parameters)) {
var writer_parameters = new WriterParameters {
SymbolWriterProvider = new PortablePdbWriterProvider (),
};
module.Write (outfile, writer_parameters);
}
}
}

View File

@@ -0,0 +1 @@
mdb2ppdb.cs