* Makefile: Build the make-map.exe in Mono.Unix.Native; add /nowarn:0618 to
[mono.git] / mono / dis / monodis.1
1 .\" 
2 .\" monodis manual page.
3 .\" (C) Ximian, Inc. 
4 .\" Author:
5 .\"   Miguel de Icaza (miguel@gnu.org)
6 .\"
7 .TH Mono "Mono 1.1.x"
8 .SH NAME
9 monodis \- CIL image content dumper and disassembler.
10 .SH SYNOPSIS
11 .PP
12 .B monodis
13 [\-h] [\-\-help] 
14 [\-\-output=FILENAME]
15 [\-\-mscorlib]
16 [\-\-assembly]
17 [\-\-assemblyref]
18 [\-\-classlayout]
19 [\-\-constant]
20 [\-\-customattr]
21 [\-\-declsec]
22 [\-\-event]
23 [\-\-exported]
24 [\-\-fields]
25 [\-\-file]
26 [\-\-forward-decls]
27 [\-\-genericpar]
28 [\-\-implmap]
29 [\-\-interface]
30 [\-\-manifest]
31 [\-\-marshal]
32 [\-\-memberref]
33 [\-\-method]
34 [\-\-methodimpl]
35 [\-\-methodsem]
36 [\-\-methodspec]
37 [\-\-module]
38 [\-\-moduleref]
39 [\-\-mresources]
40 [\-\-nested]
41 [\-\-param]
42 [\-\-parconst]
43 [\-\-property]
44 [\-\-propertymap]
45 [\-\-standalonesig]
46 [\-\-typedef]
47 [\-\-typeref]
48 [\-\-typespec]
49 [\-\-blob]
50 [FILES...]
51 .SH DESCRIPTION
52 The \fImonodis\fP program is used to dump the contents a CIL image
53 (contained in .EXE files that contain extended PE/COFF CIL code).  
54 .SH OPTIONS
55 The following Generic options are supported:
56 .TP
57 .I "--help", "-h"
58 Displays usage instructions.
59 .TP
60 .I "--output=FILENAME"
61 Write output into \fIFILENAME\fP and dump any embedded managed resources.
62 .TP
63 .I "--mscorlib"
64 For non-corlib assemblies, use "mscorlib" as the assembly name. This
65 is useful for round-tripping the IL with ilasm.
66 .TP
67 .I "--show-method-tokens"
68 Display tokens for dissasembled methods.
69 .TP
70 .I "--assembly"
71 Dumps the contents of the Assembly table.
72 .TP
73 .I "--assemblyref"
74 Dumps the contents of the AssemblyRef table.
75 .TP
76 .I "--classlayout"
77 Dumps the contents of the ClassLayout table.
78 .TP
79 .I "--constant"
80 Dumps the contents of the Constant table.
81 .TP
82 .I "--customattr"
83 Dumps the contents of the CustomAttribute table.
84 .TP
85 .I "--declsec"
86 Dumps the contents of the DeclSec table.
87 .TP
88 .I "--event"
89 Dumps the contents of the Event table.
90 .TP
91 .I "--exported"
92 Dumps the contents of the ExportedType table.
93 .TP
94 .I "--fields"
95 Dumps the contents of the Field table.
96 .TP
97 .I "--file"
98 Dumps the contents of the File table.
99 .TP
100 .I "--forward-decls"
101 Dumps forward declarations for classes.
102 .TP
103 .I "--genericpar"
104 Dumps the contents of the GenericParam table.
105 .TP
106 .I "--implmap"
107 Dumps the contents of the ImplMap table.
108 .TP
109 .I "--interface"
110 Dumps the contents of the InterfaceImpl table.
111 .TP
112 .I "--manifest"
113 Dumps the contents of the ManifestResource table.
114 .TP
115 .I "--marshal"
116 Dumps the contents of the FieldMarshal table.
117 .TP
118 .I "--memberref"
119 Dumps the contents of the MemberRef table.
120 .TP
121 .I "--method"
122 Dumps the contents of the MethodDef table.
123 .TP
124 .I "--methodimpl"
125 Dumps the contents of the MethodImpl table.
126 .TP
127 .I "--methodspec"
128 Dumps the contents of the MethodSpec table.
129 .TP
130 .I "--methodsem"
131 Dumps the contents of the MethodSemantics table.
132 .TP
133 .I "--module"
134 Dumps the contents of the Module table.
135 .TP
136 .I "--moduleref"
137 Dumps the contents of the ModuleRef table.
138 .TP
139 .I "--mresources"
140 Dumps the managed resources embedded in the assembly.
141 .TP
142 .I "--nested"
143 Dumps the contents of the NestedClass table.
144 .TP
145 .I "--param"
146 Dumps the contents of the Param table.
147 .TP
148 .I "--parconst"
149 Dumps the contents of the GenericParameterConstraint table.
150 .TP
151 .I "--property"
152 Dumps the contents of the Property table.
153 .TP
154 .I "--propertymap"
155 Dumps the contents of the PropertyMap table.
156 .TP
157 .I "--standalonesig"
158 Dumps the contents of the StandAloneSig table.
159 .TP
160 .I "--typedef"
161 Dumps the contents of the TypeDef table.
162 .TP
163 .I "--typespec"
164 Dumps the contents of the TypeSpec table.
165 .TP
166 .I "--typeref"
167 Dumps the contents of the TypeRef table.
168 .TP
169 .I "--blob"
170 Dumps the entire contents of the blob stream as hex.
171 .PP
172 If no flags are specified the program dumps the content of the image
173 in a format that can be used to rountrip the code.
174 .PP
175 .SH ENVIRONMENT VARIABLES
176 .TP
177 .I "MONO_PATH"
178 Provides a search path to mono and mint where to look for library files.
179 Directories are separated by the platform path separator (colons on unix). Example:
180 .B /home/username/lib:/usr/local/mono/lib
181 .PP
182 .SH AUTHOR
183 monodis was written by Miguel de Icaza, Paolo Molaro and Dietmar Maurer.
184 .SH SEE ALSO
185 .BR pedump(1)