Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Harper <jackson@novell.com>2003-02-18 10:14:37 +0300
committerJackson Harper <jackson@novell.com>2003-02-18 10:14:37 +0300
commit3035378a399eecc9f0b0c2522713841ddda64568 (patch)
treee686d9416e48e7891b0a7b0ce46ab59ab6718036 /mcs/class/Mono.PEToolkit
parente3d6141747828d6e10932ac4982ff76237d71f3d (diff)
* mddump.cs: Comment out some stuff that does not need to be seen.
svn path=/trunk/mcs/; revision=11681
Diffstat (limited to 'mcs/class/Mono.PEToolkit')
-rw-r--r--mcs/class/Mono.PEToolkit/build/ChangeLog3
-rw-r--r--mcs/class/Mono.PEToolkit/build/mddump.cs8
2 files changed, 9 insertions, 2 deletions
diff --git a/mcs/class/Mono.PEToolkit/build/ChangeLog b/mcs/class/Mono.PEToolkit/build/ChangeLog
new file mode 100644
index 00000000000..2b555b5e2f7
--- /dev/null
+++ b/mcs/class/Mono.PEToolkit/build/ChangeLog
@@ -0,0 +1,3 @@
+2003-02-17 Jackson Harper <jackson@latitudegeo.com>
+
+ * mddump.cs: Comment out some stuff that does not need to be seen.
diff --git a/mcs/class/Mono.PEToolkit/build/mddump.cs b/mcs/class/Mono.PEToolkit/build/mddump.cs
index d717e4bcf31..04a4942c9ab 100644
--- a/mcs/class/Mono.PEToolkit/build/mddump.cs
+++ b/mcs/class/Mono.PEToolkit/build/mddump.cs
@@ -12,7 +12,6 @@ public sealed class MDDump {
public static uint Dump (string peFile)
{
-
using (Image pe = new Image (peFile)) {
pe.Open ();
pe.ReadHeaders ();
@@ -34,12 +33,17 @@ public sealed class MDDump {
t.Dump (Console.Out);
}
- /*
+ /*
MethodIL il = pe.MetaDataRoot.GetMethodBody(1);
Console.WriteLine(il);
il.DumpHexBytecode(Console.Out);
*/
}
+
+ FileStream out_file = new FileStream ("out.dll", FileMode.Create);
+ BinaryWriter binary_writer = new BinaryWriter (out_file);
+ pe.WriteHeaders (binary_writer);
+ out_file.Close ();
}
return 0;