2 .\" monodis manual page.
5 .\" Miguel de Icaza (miguel@gnu.org)
9 monodis \- CIL image content dumper and disassembler.
55 The \fImonodis\fP program is used to dump the contents an ECMA/ISO CIL
56 image (contained in .EXE files that contain extended PE/COFF CIL
59 To roundtrip assemblies using ilasm, it is best to use the --output
60 argument, as that will make monodis save the embedded resources in
61 files that can later be properly embedded back by ilasm.
63 Additionally, the tool can be used to dump the contents of the various
64 ECMA CIL metadata tables.
66 The following Generic options are supported:
69 Displays usage instructions.
71 .I "--output=FILENAME"
72 Write output into \fIFILENAME\fP and dump any embedded managed resources.
75 For non-corlib assemblies, use "mscorlib" as the assembly name. This
76 is useful for round-tripping the IL with ilasm.
78 .I "--show-method-tokens"
79 Display tokens for disassembled methods.
82 Display tokens for strings, types, methods, fields, etc.
83 .SH OPTIONS TO DISPLAY METADATA TABLES
84 The following options are used to display metadata tables instead of
85 disassembling the CIL image.
88 Dumps the contents of the Assembly table.
91 Dumps the contents of the AssemblyRef table.
94 Dumps the contents of the ClassLayout table.
97 Dumps the contents of the Constant table.
100 Dumps the contents of the CustomAttribute table.
103 Dumps the contents of the DeclSec table.
106 Dumps the contents of the Event table.
109 Dumps the contents of the ExportedType table.
112 Dumps the contents of the Field table.
115 Dumps the contents of the File table.
118 Dumps forward declarations for classes.
121 Dumps the contents of the GenericParam table.
124 Dumps the contents of the ImplMap table.
127 Dumps the contents of the InterfaceImpl table.
130 Dumps the contents of the ManifestResource table.
133 Dumps the contents of the FieldMarshal table.
136 Dumps the contents of the MemberRef table.
139 Dumps the contents of the MethodDef table.
142 Dumps the contents of the MethodImpl table.
145 Dumps the contents of the MethodSpec table.
148 Dumps the contents of the MethodSemantics table.
151 Dumps the contents of the Module table.
154 Dumps the contents of the ModuleRef table.
157 Saves all the managed resources embedded in the assembly into the
158 current directory. To get a list of the embedded resources use the
162 Prints offsets and names of manifest resources embedded in the assembly.
165 Dumps the contents of the NestedClass table.
168 Dumps the contents of the Param table.
171 Dumps the contents of the GenericParameterConstraint table.
174 Dumps the contents of the Property table.
177 Dumps the contents of the PropertyMap table.
180 Dumps the contents of the StandAloneSig table.
183 Dumps the contents of the TypeDef table.
186 Dumps the contents of the TypeSpec table.
189 Dumps the contents of the TypeRef table.
192 Dumps the entire contents of the blob stream as hex.
195 Dumps the contents of the Strings heap.
198 Dumps the contents of the User-Strings heap
200 If no flags are specified the program dumps the content of the image
201 in a format that can be used to rountrip the code.
203 .SH ENVIRONMENT VARIABLES
206 Provides a search path to mono and mint where to look for library files.
207 Directories are separated by the platform path separator (colons on unix). Example:
208 .B /home/username/lib:/usr/local/mono/lib
211 monodis was written by Miguel de Icaza, Paolo Molaro and Dietmar Maurer.