You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
12
mcs/tools/mdb2ppdb/Makefile
Normal file
12
mcs/tools/mdb2ppdb/Makefile
Normal 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
|
||||
37
mcs/tools/mdb2ppdb/mdb2ppdb.cs
Normal file
37
mcs/tools/mdb2ppdb/mdb2ppdb.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
1
mcs/tools/mdb2ppdb/mdb2ppdb.exe.sources
Normal file
1
mcs/tools/mdb2ppdb/mdb2ppdb.exe.sources
Normal file
@@ -0,0 +1 @@
|
||||
mdb2ppdb.cs
|
||||
Reference in New Issue
Block a user