Skip to content

Commit

Permalink
Added code pieces for blog at http://www.ipreferjim.com/2012/06/debug…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimschubert committed Jun 15, 2012
1 parent f3c789a commit 2bbd580
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 0 deletions.
75 changes: 75 additions & 0 deletions 2012-05-15/Program-DEBUGDefined.il
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

// Microsoft (R) .NET Framework IL Disassembler. Version 4.0.30319.1
// Copyright (c) Microsoft Corporation. All rights reserved.



// Metadata version: v4.0.30319
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 4:0:0:0
}
.assembly extern System
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 4:0:0:0
}
.assembly Program
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 )
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.module Program.exe
// MVID: {9B68E223-009A-4537-BD4A-471F4888B86E}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003 // WINDOWS_CUI
.corflags 0x00000001 // ILONLY
// Image base: 0x02200000


// =============== CLASS MEMBERS DECLARATION ===================

.class private auto ansi beforefieldinit Program
extends [mscorlib]System.Object
{
.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
// Code size 35 (0x23)
.maxstack 8
IL_0000: nop
IL_0001: ldstr "Console.WriteLine #1"
IL_0006: call void [mscorlib]System.Console::WriteLine(string)
IL_000b: nop
IL_000c: ldstr "Debug.WriteLine"
IL_0011: call void [System]System.Diagnostics.Debug::WriteLine(string)
IL_0016: nop
IL_0017: ldstr "Console.WriteLine #2"
IL_001c: call void [mscorlib]System.Console::WriteLine(string)
IL_0021: nop
IL_0022: ret
} // end of method Program::Main

.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
} // end of method Program::.ctor

} // end of class Program


// =============================================================

// *********** DISASSEMBLY COMPLETE ***********************
// WARNING: Created Win32 resource file C:\src\blogs\2012-05-15\Program-DEBUGDefined.res
Binary file added 2012-05-15/Program-DEBUGDefined.res
Binary file not shown.
67 changes: 67 additions & 0 deletions 2012-05-15/Program-NoDefines.il
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

// Microsoft (R) .NET Framework IL Disassembler. Version 4.0.30319.1
// Copyright (c) Microsoft Corporation. All rights reserved.



// Metadata version: v4.0.30319
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 4:0:0:0
}
.assembly Program
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 )
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.module Program.exe
// MVID: {F314B5E0-81F0-4CDA-8ADF-8283B2029D6A}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003 // WINDOWS_CUI
.corflags 0x00000001 // ILONLY
// Image base: 0x02170000


// =============== CLASS MEMBERS DECLARATION ===================

.class private auto ansi beforefieldinit Program
extends [mscorlib]System.Object
{
.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
// Code size 24 (0x18)
.maxstack 8
IL_0000: nop
IL_0001: ldstr "Console.WriteLine #1"
IL_0006: call void [mscorlib]System.Console::WriteLine(string)
IL_000b: nop
IL_000c: ldstr "Console.WriteLine #2"
IL_0011: call void [mscorlib]System.Console::WriteLine(string)
IL_0016: nop
IL_0017: ret
} // end of method Program::Main

.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
} // end of method Program::.ctor

} // end of class Program


// =============================================================

// *********** DISASSEMBLY COMPLETE ***********************
// WARNING: Created Win32 resource file C:\src\blogs\2012-05-15\Program-NoDefines.res
Binary file added 2012-05-15/Program-NoDefines.res
Binary file not shown.
10 changes: 10 additions & 0 deletions 2012-05-15/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Diagnostics;

class Program {
static void Main(string[] args) {
Console.WriteLine("Console.WriteLine #1");
Debug.WriteLine("Debug.WriteLine");
Console.WriteLine("Console.WriteLine #2");
}
}
Binary file added 2012-05-15/Program.exe
Binary file not shown.
Binary file added 2012-05-15/ildasm-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2bbd580

Please sign in to comment.