67986043f2ae97ae8289dc88f7895f827eeb884d
[mono.git] / mono / dis / ChangeLog
1
2 Fri Jan 26 12:30:22 CET 2007 Paolo Molaro <lupus@ximian.com>
3
4         * get.c, dis-cil.c: warning fixes.
5
6 Wed Jan 17 17:26:08 CET 2007 Paolo Molaro <lupus@ximian.com>
7
8         * main.c: if a file can't be loaded as an assembly, load it as a
9         modules, so monodis can be used also for netmodules.
10
11 2007-01-04  Raja R Harinath  <rharinath@novell.com>
12
13         * get.c (get_method_core): Pick generic container from the
14         declaring method.
15
16 2006-12-27  Raja R Harinath  <rharinath@novell.com>
17
18         Avoid MonoGenericContext
19         * dis-cil.c, dump.c, get.c, get.h, main.c: Replace all instances
20         of MonoGenericContext with MonoGenericContainer, except for calls
21         to mono_class_get_full and mono_get_method_full.  Use a top-down
22         pass to propagate the original argument type from 'dis_method_list'.
23
24         * dis-cil.c, dump.c, get.c, get.h, main.c: Replace several
25         instances of MonoGenericContext with MonoGenericContainer.
26         Use a bottom-up pass to propagate the "demand" parameter type from
27         metadata type parsing.
28
29 2006-11-09  Ankit Jain  <jankit@novell.com>
30
31         * dump.c (dump_table_assemblyref): Dump Flags also.
32         * main.c (assembly_ref_flags): New. Stringify AssemblyRef flags.
33         (dis_directive_assemblyref): Emit flags also.
34         (dis_directive_assembly): Likewise.
35
36 2006-10-06  Miguel de Icaza  <miguel@novell.com>
37
38         * main.c (dis_directive_assembly): Fix the rendering of .locale to
39         be a data dump.
40
41 2006-10-06  Zoltan Varga  <vargaz@gmail.com>
42
43         * dump.c main.c: Applied patch from Jb. Allow dumping the PropertyPtr table.
44
45 2006-10-05  Zoltan Varga  <vargaz@gmail.com>
46
47         * dump.c main.c: Allow dumping the *Ptr tables.
48
49 2006-09-12  Zoltan Varga  <vargaz@gmail.com>
50
51         * declsec.c: Fix windows VC build.
52
53 2006-08-09  Alp Toker  <alp@atoker.com>
54
55         * dis-cil.c:
56         * dis-cil.h:
57         * main.c:
58         * monodis.1:
59         * push-pop.h:
60         * util.c: Typofix 'dissasemble' to 'disassemble'.
61
62 2006-06-27  Ankit Jain  <jankit@novell.com>
63
64         * get.c (get_assemblyref): Escape name.
65         (get_moduleref): Likewise.
66         (get_module): Likewise.
67
68 2006-06-02  Ankit Jain  <jankit@novell.com>
69
70         * get.c (dis_stringify_method_signature_full): Fix two memory leaks.
71
72 2006-06-02  Ankit Jain  <jankit@novell.com>
73
74         * main.c (dis_method_list): Print only the method name in "{ // end
75         of.."
76
77 2006-06-02  Ankit Jain  <jankit@novell.com>
78
79         * get.c (get_typedef): Return NULL for <Module> type.
80         (get_escaped_class_name): Likewise.
81         (dis_stringify_object_with_class): Likewise.
82
83         (dis_stringify_type): Return NULL if the type name is NULL.
84         (get_escaped_name): Don't try to escape a NULL name.
85
86         (get_fieldref_signature): Type name can be null.
87         (get_field): Likewise.
88         (get_method_core): Likewise.
89         (get_methoddef): Likewise.
90         
91         * main.c (dis_method_list): Print correct message for global methods.
92         (dis_globals): Don't print '<Module>' for global methods/fields.
93
94 2006-06-01  Ankit Jain  <jankit@novell.com>
95
96         * declsec.c (dump_declsec_entry20): Fix a warning.
97
98 2006-05-28  Zoltan Varga  <vargaz@gmail.com>
99
100         * declsec.c (dump_declsec_entry20): Fix a warning.
101
102 2006-05-26  Ankit Jain  <jankit@novell.com>
103
104         Patch from Sebastien Pouliot.
105         * declsec.h: New. 
106         * declsec.c: New. Support for new declarative security attribute
107         metadata format (2.0)
108         * dump.c (dump_table_declsec): Support the new 2.0 format.
109         * main.c (dump_declarative_security): Support the new 2.0 format.
110         * Makefile.am : Add declsec.c & declsec.h .
111
112 2006-05-15  Ankit Jain  <jankit@novell.com>
113
114         * dis-cil.c (disassemble_cil): Exception clauses can be unordered,
115         handle that.
116
117 2006-05-11  Ankit Jain  <jankit@novell.com>
118
119         * get.c (get_custom_mod): Fix printing of custom modifiers.
120         (dis_stringify_type): Likewise.
121         (get_field_signature): Likewise.
122         (get_ret_type): Likewise.
123         (get_param): Likewise.
124
125 2006-05-11  Ankit Jain  <jankit@novell.com>
126
127         * get.c (dis_stringify_method_signature): Rename to .. 
128         (dis_stringify_method_signature_full): .. this. Add 'with_marshal_info'
129         param.
130         * get.h (dis_stringify_method_signature_full): Add new function.
131         * main.c (dis_property_methods): Update to use
132         dis_stringify_method_signature_full.
133         (dis_event_methods): Likewise.
134
135 2006-05-10  Ankit Jain  <jankit@novell.com>
136
137         * get.c (init_key_table): Add keyword 'switch'.
138
139 2006-05-10  Ankit Jain  <jankit@novell.com>
140
141         * get.c (init_key_table): Add keyword 'property'.
142
143 2006-03-15  Zoltan Varga  <vargaz@gmail.com>
144
145         * main.c (typedef_flags): Decode TYPE_ATTRIBUTE_FORWARDER.
146
147 2006-02-21  Ankit Jain  <jankit@novell.com>
148
149         * get.c (can_print_generic_param_name): Rename to ..
150         (cant_print_generic_param_name): .. this, to match function name with behavior.
151
152 2006-02-21  Ankit Jain  <jankit@novell.com>
153
154         * get.c (mono_generic_params_with_ambiguous_names): New.
155         (generic_containers): New. Hashtable of all generic containers that have
156         been checked for ambiguous params.
157         (check_ambiguous_genparams): New. Walk a MonoGenericContainer
158         and fill mono_generic_params_with_ambiguous_names table.
159         (can_print_generic_param_name): New. Check whether a MonoGenericParam has
160         ambiguous names.
161         (dis_stringify_type): Use new is_ambiguous_generic_param to determine
162         whether to print number or name for VAR/MVAR.
163
164 2006-02-18  Raja R Harinath  <harinath@gmail.com>
165
166         * get.c (get_typespec): Don't use mono_type_create_from_typespec_full().
167         Use get_type() instead.
168         (get_type): Add 'is_def' parameter.
169         (get_field_signature, get_ret_type, get_param): Update.
170         * dump.c (dump_table_property): Likewise.
171         * get.h (get_type): Update prototype.
172
173 2006-02-16  Raja R Harinath  <rharinath@novell.com>
174
175         * get.c (get_typespec): Pass MonoGenericContainer to
176         mono_type_create_from_typespec_full.
177         (get_type): Likewise.
178         * main.c (dis_code): Likewise.
179         (dis_property_signature): Likewise.
180
181 2006-02-15  Ankit Jain  <jankit@novell.com>
182
183         * get.c (get_array_shape): Use mono_metadata_decode_signed_value to get
184         lower bounds.
185
186 2006-02-09  Ankit Jain  <jankit@novell.com>
187
188         * get.c (stringify_array): New. Returns the stringified representation
189         of an array.
190         (dis_stringify_array): Use stringify_array.
191         (get_array_shape): Likewise. Also, allow lo_bounds to be signed.
192
193 2006-02-03  Sebastien Pouliot  <sebastien@ximian.com>
194
195         * get.c: Added #include <mono/utils/mono-compiler.h> so VS.NET
196         can compile monodis.
197
198 2006-01-28  Ankit Jain  <jankit@novell.com>
199
200         * get.c (get_method_core): Emit generic arity for a MemberRef.
201         (get_method_override): Emit full sig only if its a generic type.
202
203 2006-01-27  Ankit Jain  <jankit@novell.com>
204
205         * get.c (get_methodref_signature): Remove 'context' parameter.
206         Update call sites.
207         * get.h (get_methodref_signature): Update.
208         * dump.c (dump_table_memberref): Update.
209
210 2006-01-26  Raja R Harinath  <harinath@gmail.com>
211
212         * get.c (stringify_double): Simplify, and avoid 'E' too.
213
214 2006-01-26  Ankit Jain  <jankit@novell.com>
215
216         * get.c (stringify_double): Remove trailing '.' if it has 'e'.
217
218 2006-01-25  Ankit Jain  <jankit@novell.com>
219
220         * get.c (stringify_double): New. Fix printing of float/doubles to enable
221         roundtripping.
222         * get.h (stringify_double): Add new function.
223         (get_constant): Use stringify_double.
224         * dis-cil.c (disassemble_cil): Likewise.
225         
226 2006-01-25  Ankit Jain  <jankit@novell.com>
227             Raja R Harinath  <rharinath@novell.com>
228
229         * get.c (dis_stringify_type): For MVAR/VAR, print number if the generic param
230         is in the mono_generic_params_with_ambiguous_names table.
231
232 2006-01-20  Raja R Harinath  <rharinath@novell.com>
233
234         * main.c (monodis_assembly_load_hook): New.
235         (monodis_assembly_search_hook): New.
236         (main): Install them as hooks into the assembly loading core.
237
238 2006-01-19  Ankit Jain  <jankit@novell.com>
239
240         * main.c (dis_type): Dump custom attributes for a type before doing the same
241         for its type parameters.
242
243 2006-01-18  Ankit Jain  <jankit@novell.com>
244
245         * main.c (typedef_flags): Change 'special-name' to 'specialname'.
246
247 2006-01-17  Ankit Jain  <jankit@novell.com>
248
249         * get.c (get_method_override): Use '.override method' syntax if the class or
250         or the method itself is generic.
251         * main.c (dis_code): Emit '.override' only, 'method' gets handled by get_method_override.
252
253 2006-01-17  Ankit Jain  <jankit@novell.com>
254
255         * get.c (init_key_table): Add keywords 'bestfit', 'charmaperror', 'off' & 'on'.
256
257 2006-01-16  Ankit Jain  <jankit@novell.com>
258
259         * get.c (get_method_core): Handle a MemberRef with a TypeSpec parent.
260         Inflate MonoMethod after getting it from mono_get_method_full.
261
262 2006-01-15  Ankit Jain  <jankit@novell.com>
263
264         * get.c (get_method_override): Get full signature of the method.
265         * main.c (dis_code): Emit ".override method" for full signature
266         of the method.
267
268 2006-01-06  Ankit Jain  <jankit@novell.com>
269
270         * get.c (get_generic_param): Generic param attributes can be any combination
271         of .ctor, valuetype and class, emit correctly.
272
273 2006-01-03  Ankit Jain  <jankit@novell.com>
274
275         * get.c (init_key_table): Add keywords uint8, uint16, uint32 and uint64.
276
277 2005-12-24  Jb Evain  <jbevain@gmail.com>
278
279         * main.c (dis_property_signature): read the hasthis flag.
280
281 2005-12-13  Zoltan Varga  <vargaz@gmail.com>
282
283         * get.c (get_constant): Use finite() instead of isnormal () since the
284         latter is not available on solaris.
285
286 2005-11-23  Ankit Jain  <jankit@novell.com>
287
288         * get.c (get_methodspec): Use mono_get_method_full so as to handle
289         methodspecs that refer to generic methods in other assemblies.
290
291 2005-11-23  Ankit Jain  <jankit@novell.com>
292
293         * dump.c (has_cattr_get_table): Handle GenericParam.
294         * get.c (dis_get_custom_attrs): Likewise.
295         * main.c (dump_cattrs_for_type_params): New. Dump custom attributes
296         for type parameters.
297         (dis_method_list): Call dump_cattrs_for_type_params.
298         (dis_type): Likewise.
299
300 2005-11-17  Ankit Jain  <jankit@novell.com>
301
302         * get.c (dis_stringify_type): Escape generic type parameter names.
303
304 2005-11-17  Ankit Jain  <jankit@novell.com>
305
306         * get.c (str_escape): New. Escape a given list of characters.
307           (get_escaped_name): Escape ' and \ using str_escape, and 
308         allow ` .
309
310 2005-11-10  Ankit Jain  <jankit@novell.com>
311
312         * dump.c (dump_table_method): Load generic param constraints.
313         * get.c (dis_stringify_method_signature): Likewise.
314         * main.c (dis_method_list): Likewise.
315           (dis_type): Likewise.
316
317 2005-11-10  Ankit Jain  <jankit@novell.com>
318
319         * get.c (init_key_table): Add keyword - uint.
320
321 2005-11-08  Ankit Jain  <jankit@novell.com>
322
323         * dump.c (dump_table_method): Get the type/method context required for parsing
324           method signature and dis_stringify'ing it.
325
326 2005-11-08  Ankit Jain  <jankit@novell.com>
327
328         * get.c (init_key_table): Add keywords - callconv and flags.
329
330 2005-10-28  Ankit Jain  <jankit@novell.com>
331
332         * dis_stringify_method_signature: Add detail for 'returns:' in the comment.
333
334 2005-10-28  Ankit Jain  <jankit@novell.com>
335
336         * tests: Add new directory for test cases.
337
338 2005-10-28  Ankit Jain  <jankit@novell.com>
339
340         * get.c (dis_stringify_method_signature): Use context instead of container
341           as container can be NULL.
342
343 2005-10-20  Ankit Jain  <jankit@novell.com>
344
345         * get.c (get_method_core): Use the parent context for get_methodspec
346           instead of the inflated method's context.
347           (get_methodspec): Get the context for the generic method.
348           Use parent_context for getting the method's type parameters. 
349
350 2005-10-20  Ankit Jain  <jankit@novell.com>
351
352         * main.c (dis_method_list): Oops. Check method_context for null.
353
354 2005-10-19  Ankit Jain  <jankit@novell.com>
355
356         * main.c (dis_method_list): Fix warning introduced by my last patch.
357
358 2005-10-19  Ankit Jain  <jankit@novell.com>
359
360         * main.c (dis_method_list): Use 'method_context' instead of 'container' for 
361           mono_metadata_parse_method_signature_full.
362
363 2005-10-02  Zoltan Varga  <vargaz@freemail.hu>
364
365         * get.h get.c main.c: Fix some warnings and bugs.
366
367 2005-09-20  Ankit Jain  <jankit@novell.com>
368
369         * monodis.1: Update documentation for --output.
370
371 2005-09-20  Ankit Jain  <jankit@novell.com>
372
373         * main.c (table_list): Add --mresources to the table.
374           (usage): Don't add "--mresources" explicitly for usage output.
375           (main): Remove explicit handling for --mresources.
376
377 2005-09-20  Ankit Jain  <jankit@novell.com>
378
379         * main.c (main): Dump managed resources when --output is specified.
380
381 2005-09-08  Ankit Jain  <jankit@novell.com>
382
383         * monodis.1: Document --customattr, --declsec, --forward-decls, --implmap,
384           --marshal, --methodimpl, --methodspec, --mresources, --nested, --standalonesig,
385           and --typespec.
386
387 2005-09-08  Ankit Jain  <jankit@novell.com>
388
389         * main.c (dis_nt_header): New. Dump pe_stack_reserve if different from the
390           default value (0x100000).
391           (disassemble_file): Call dis_nt_header.
392
393 2005-09-06  Ankit Jain  <jankit@novell.com>
394
395         * main.cs (dis_directive_assemblyref): Use the row id into the AssemblyRef
396           table instead of 1 for dump_cattrs.
397           Spotted by Harinath.
398
399 2005-09-05  Atsushi Enomoto  <atsushi@ximian.com>
400
401         quick build fix.
402         * get.cs : (dis_get_custom_attrs) added assembly reference support.
403         * main.cs: (dis_directive_assemblyref) use MONO_TOKEN_ASSEMBLY_REF.
404
405 2005-09-05  Ankit Jain  <jankit@novell.com>
406
407         * main.c (dis_directive_assemblyref): Dump custom attributes.
408
409 2005-08-29  Ankit Jain  <jankit@novell.com>
410
411         * get.c (dis_stringify_marshal_spec): Add new case for MONO_NATIVE_CUSTOM.
412         
413 2005-08-27  Ankit Jain  <jankit@novell.com>
414
415         * get.c (init_key_table): Add keywords - ldelem, stelem, stloc, stobj,
416           stsfld, sub, sub.ovf, sub.ovf.un, unbox to the table.
417
418 2005-08-25  Ankit Jain  <jankit@novell.com>
419
420         * get.c (get_encoded_user_string_or_bytearray): Add len param.
421           (get_constant): Pass len param to get_encoded_user_string_or_bytearray.
422         * dis-cil.c (dissasemble_cil): Calculate len of the userstring and pass to
423           get_encoded_user_string_or_bytearray.
424         * get.h (get_encoded_user_string_or_bytearray): Add len param.
425
426 2005-08-23  Ankit Jain  <jankit@novell.com>
427
428         Fix #75186.
429         * get.c (get_ret_type): Use '&' instead of '[out]' for return type.
430
431 2005-08-23  Ankit Jain  <jankit@novell.com>
432
433         * get.c (get_encoded_user_string_or_bytearray): New. Print a string if possible
434           or else a bytearray from the US heap.
435           (get_encoded_user_string_bytearray): New. Print a bytearray from the US heap.
436           (get_constant): Use get_encoded_user_string_or_bytearray for MONO_TYPE_STRING.
437         * get.h (get_encoded_user_string_or_bytearray): Add the new function. 
438         * dis-cil.c (get_encoded_user_string): Move to get.c .
439           (disassemble_cil): Use get_encoded_user_string_or_bytearray instead of 
440           get_encoded_user_string.
441
442 2005-08-20  Ankit Jain  <jankit@novell.com>
443
444         * dis-cil.c (dissasemble_cil): Specify precision to enable
445           roundtripping of floats.
446         * get.c (get_constant): Likewise.  
447
448 2005-08-13  Jb Evain  <jbevain@gmail.com>
449
450         * get.c (get_token): handle the case when
451           the token is a member ref pointing to a method.
452
453 2005-08-12  Ankit Jain  <jankit@novell.com>
454
455         * get.c (init_key_table): Add "xor" to the table.
456
457 2005-08-12  Jb Evain  <jbevain@gmail.com>
458
459         * get.c (dis_stringify_method_signature): handle case when a method
460           has parameters but no corresponding Param row.
461           Patch forged with Ankit.
462
463 2005-08-12  Ankit Jain <jankit@novell.com>
464
465         * get.c (dis_stringify_variant_type): New. Stringify MonoMarshalVariant.
466           (dis_stringify_marshal_spec): Add new case for MONO_NATIVE_SAFEARRAY. 
467
468 2005-08-11  Ankit Jain <jankit@novell.com>
469
470         * get.c (element_type_map): Use "typedref" instead of "TypedByRef" for
471           MONO_TYPE_TYPEDBYREF.
472           (get_ret_type): Use "typedref" instead of "typedbyref".
473           (get_param): Likewise.
474           
475 Wed Aug 10 17:15:52 CEST 2005 Paolo Molaro <lupus@ximian.com>
476
477         * dump.c: dump the marshal signature blob on --marshal.
478
479 2005-08-04  Ankit Jain <jankit@novell.com>
480
481         * main.c (dis_directive_moduleref): Always escape module ref names.
482
483 2005-08-03  Ankit Jain <jankit@novell.com>
484
485         * main.c (call_conv_map): Oops. Add a sentinel entry (-1, NULL).
486
487 2005-08-03  Ankit Jain <jankit@novell.com>
488
489         * main.c (call_conv_map): Map call conv value of 0 to "".
490
491 2005-08-02  Ankit Jain <jankit@novell.com>
492
493         * main.c (dis_directive_moduleref): Escape module ref names.
494
495 2005-08-01  Ankit Jain <jankit@novell.com>
496
497         * get.c (field_flags_map): Use C comments instead of C#.
498
499 2005-08-01  Ankit Jain <jankit@novell.com>
500
501         * get.c (dis_stringify_marshal_spec): Include "marshal (..)" as part of the
502           returned string. And fix memory leak.
503           (dis_stringify_method_signature): Fix usage of dis_stringify_marshal_spec
504           accordingly.
505         * main.c (dis_field_list): Fix usage of dis_stringify_marshal_spec. Cleanup
506           output of spaces.
507
508 2005-08-01  Ankit Jain <jankit@novell.com>
509
510         * get.c (dis_stringify_marshal_spec): Make it non-static.
511         * main.c (dis_field_list): Print marshal info for fields.
512         
513 2005-07-29  Ankit Jain <jankit@novell.com>
514
515         * get.c (get_constant): Fix printing of some constant types and make it consistent.
516
517 2005-07-28  Ankit Jain <jankit@novell.com>
518
519         * get.c (dis_stringify_method_signature): Fix handling of marshal info for
520           method params. Also, handle possible gaps in the PARAM table.
521
522 2005-07-26  Zoltan Varga  <vargaz@freemail.hu>
523
524         * main.c: Fix noinline->noinlining.
525
526 2005-05-26  Sebastien Pouliot  <sebastien@ximian.com>
527
528         * monodis.vcproj: Project file for monodis.
529
530 2005-05-06  Zoltan Varga  <vargaz@freemail.hu>
531
532         * main.c: Respect MONO_PATH when loading assemblies.
533
534 2005-04-23  Ankit Jain  <ankit@corewars.org>
535
536         * get.c : Revert Atsushi's earlier patch. Its already been fixed with r43342.
537
538 2005-04-22  Atsushi Enomoto  <atsushi@ximian.com>
539
540         * get.c : arraytype[,] should not be wrapped as 'arraytype[]'.
541
542 2005-04-20  Ankit Jain  <ankit@corewars.org>
543
544         Fix #74521.
545         * get.c (get_generic_param, get_method_core, get_methoddef): Dont use
546         dis_stringify_object_with_class directly, use dis_stringify_type instead.
547
548 2005-04-20  Ankit Jain  <ankit@corewars.org>
549
550         Fix #74657.
551         * main.c (dis_field_list): Print default value if field has
552         HAS_DEFAULT flag set.
553
554 2005-04-12  Ankit Jain  <ankit@corewars.org>
555         
556         Fix #74579.
557         * main.c (dis_mresource): New. Dump embedded managed resources.
558         (main, usage): Add '--mresources' argument.
559
560 2005-04-08  Ankit Jain  <radical@corewars.org>
561
562         Fix #74374.
563         * main.c (dis_type): Add 'is_nested' and 'forward' arguments.  If
564         'is_nested', don't emit .namespace directive even if namespace is
565         set.  If 'forward', print only types.
566         (dis_types): Update to allow emitting forward declarations.
567         (disassemble_file): Emit forward declarations if requested.
568         (main, usage): Add '--forward-decls' argument.
569         * get.c (get_typedef): When printing a nested type, don't include
570         the namespace again, even if it is set.
571
572 2005-04-05  Zoltan Varga  <vargaz@freemail.hu>
573
574         * dump.c dis-cil.c: Apply patches from freebsd ports collection.
575
576 2005-04-04  Zoltan Varga  <vargaz@freemail.hu>
577
578         * get.c (get_constant): Applied patch from Ankit Jain (radical@gmail.com). Fixes #74367.
579
580 2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
581
582         * dis-cil.c, dump.c: Add mono-compiler.h header to allow/ease 
583         compilation with non-GCC compilers.
584
585 2005-03-04  Zoltan Varga  <vargaz@freemail.hu>
586
587         * get.c (dis_stringify_marshal_spec): Fix this after recent runtime
588         changes.
589
590 2005-03-01  Zoltan Varga  <vargaz@freemail.hu>
591
592         * get.c: Output marshal info for parameters.
593
594 2005-02-13  Zoltan Varga  <vargaz@freemail.hu>
595
596         * main.c: Output managed resources as well. Fixes #72033.
597
598 2005-02-01  Raja R Harinath  <rharinath@novell.com>
599
600         * get.c (get_method_core): Use mono_method_signature (mh), not
601         mh->signature.
602
603 2005-01-30  Zoltan Varga  <vargaz@freemail.hu>
604
605         * get.c dis-cil.c dump.c: Fix 64 bit warnings.
606
607 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
608
609         * dump.c:
610         * dis-cil.c: added isinf() for Solaris, that does not seem to have it.
611         Fixes the build on Solaris.
612
613 2004-12-13  Miguel de Icaza  <miguel@ximian.com>
614
615         * dis-cil.c, dump.c: Encode special constant +Inf, -Inf and NaN
616         using hex constants instead of letting libc print the values.
617
618 2004-12-11  Martin Baulig  <martin@ximian.com>
619
620         * get.c (get_typespec): Added `gboolean is_def' argument; removed
621         the special case for MONO_TYPE_VAR/MVAR and pass `is_def' down to
622         dis_stringify_type().
623         (get_escaped_name): Allow `!'.  
624
625 2004-12-11  Martin Baulig  <martin@ximian.com>
626
627         * get.c (get_token): Escape typedefs.
628
629 2004-12-11  Martin Baulig  <martin@ximian.com>
630
631         * get.c (get_escaped_name): Correctly escape nested classes.
632
633 2004-12-11  Martin Baulig  <martin@ximian.com>
634
635         * get.c (get_class_name): Renamed to get_escaped_class_name() and
636         return an escaped class name; correctly escape nested classes.
637
638 2004-12-11  Martin Baulig  <martin@ximian.com>
639
640         * get.c (dis_stringify_type): Added `gboolean is_def' argument; if
641         false, display type parameters as numbers and not as names.
642         (dis_stringify_object_with_class): Added `gboolean is_def' argument.
643         (dis_stringify_array): Likewise.
644
645 2004-12-10  Martin Baulig  <martin@ximian.com>
646
647         * get.c (init_key_table): Added `type' and `strict'.
648         (get_generic_param): Also escape the type parameter names.
649         Correctly handle multiple constraints.
650
651 2004-12-10  Martin Baulig  <martin@ximian.com>
652
653         * get.c (get_fieldref_signature): Escape the field type and name
654         here, too.
655
656 2004-12-10  Martin Baulig  <martin@ximian.com>
657
658         Started to add generics support to monodis.
659
660         * get.c (get_typedef_or_ref): Added `MonoGenericContext *'.
661         (get_field_signature, get_field): Likewise.
662         (get_methodref_signature, get_methodspec): Likewise.
663         (get_token, get_token_type, get_typespec): Likewise.
664         (get_method, get_method_type_param): Likewise.
665         (get_method_override, dis_stringify_method_signature): Likewise.
666         (get_type, get_ret_type, get_param): Likewise.
667
668         * dis-cil.c (disasemble_cil): Added `MonoGenericContext *'.
669
670 2004-12-09  Martin Baulig  <martin@ximian.com>
671
672         * get.c (get_generic_param): Take a `MonoGenericContainer *' and
673         use it to print things instead of manually parsing the metadata.
674
675         * main.c (dis_generic_param_and_constraints): Removed, use
676         get_generic_param() instead.
677         (dis_method_list): Added `MonoGenericContext *' argument.
678
679 Mon Dec 6 13:31:48 CET 2004 Paolo Molaro <lupus@ximian.com>
680
681         * main.c: add a --filter=filename option to load a file
682         with a list of types, fields, methods to disassemble.
683
684 2004-12-02  Miguel de Icaza  <miguel@ximian.com>
685
686         * main.c: Rename compilercontrolled to privatescope
687
688         * get.c (get_class_name): Correct implementation that correctly
689         handles nested classes.
690
691 2004-11-26  Miguel de Icaza  <miguel@ximian.com>
692
693         * main.c: Better implementation of the quote keyword, list all of
694         the known keywords to ildasm here. 
695
696         * get.c (dis_stringify_object_with_class): Take an argument
697         `prefix' that controls whether the `class', `valuetype' labels are
698         used.  This is needed for the catch clause that takes the type
699         directly. 
700         (get_method_core): Rename get_method to get_method_core, and allow
701         for only part of the signature to be specified, so we can produce
702         .override signatures correctly.
703         (get_method_override): Pass false as the `fullsig' argument.
704
705         (get_typedef): no longer quote the type, we quote in the call site
706         elsewhere.   Avoids double quotes.
707         
708         * main.c (quote_keyword): Quote keywords.
709
710 Tue Nov 9 17:29:28 CET 2004 Paolo Molaro <lupus@ximian.com>
711
712         * dis-cil.c, get.c, get.h: update to exception clause structure changes.
713
714 2004-11-08  Ben Maurer  <bmaurer@ximian.com>
715
716         * get.c, dump.c: warning free.
717
718 2004-10-21  Jackson Harper  <jackson@ximian.com>
719
720         * get.c: Escape typedef names.
721
722 2004-10-19    <vargaz@freemail.hu>
723
724         * main.c: Applied patch from Alexandre Rocha Lima e Marcondes  (alexandremarcondes@psl-pr.softwarelivre.org). Really fix 2.95 build.
725
726 2004-10-04  Sebastien Pouliot  <sebastien@ximian.com>
727
728         * dump.c: Added new "internal" security actions for non-CAS demands:
729         NonCasDemand, NonCasLinkDemand and NonCasInheritance.
730         * main.c: Added new "internal" security actions for non-CAS demands:
731         noncasdemand, noncaslinkdemand and noncasinheritance.
732
733 2004-09-24  Zoltan Varga  <vargaz@freemail.hu>
734
735         * main.c: Add support for pinvoke flags BestFit and 
736         ThrowOnUnmappableChar.
737
738 2004-09-23  Miguel de Icaza  <miguel@ximian.com>
739
740         * main.c (dis_directive_assemblyref): Dump the locale and public
741         key tokens 
742
743         * get.c (dis_stringify_object_with_class): Escape assembly name. 
744
745         * main.c (dis_directive_assemblyref): Escape assembly name
746
747 2004-09-21  Martin Baulig  <martin@ximian.com>
748
749         * main.c (main): If just a single assembly was specified, use the
750         runtime version it requires.
751
752 2004-09-16  Sebastien Pouliot  <sebastien@ximian.com>
753
754         * dump.c: Added new security actions added in 2.0: LinkDemandChoice,
755         InheritanceDemandChoice and DemandChoice.
756         * main.c: Added ".permissionset" to output IL. Removed "hassecurity"
757         as MS ilasm can't compile it.
758
759 2004-09-16  Zoltan Varga  <vargaz@freemail.hu>
760
761         * get.c (get_token): Add support for memberrefs.
762
763 2004-09-06  Zoltan Varga  <vargaz@freemail.hu>
764
765         * main.c: Fix build && warnings.
766
767 2004-09-05  Jambunathan K  <kjambunathan@novell.com>
768         * main.c (dump_cattrs_list): Newly carved out of dump_cattrs.
769         
770         Renamed cattrs_for_method() to more meaningful
771         dump_cattrs_for_method_params()
772         
773         (dump_cattrs_for_method_params): Fixed so that ".param[]" gets
774         dumped only when necessary. i.e., when a method parameter has
775         either a default value and/or when it has a custom attribute.
776
777 2004-09-06  Zoltan Varga  <vargaz@freemail.hu>
778
779         * get.c: Fix printing of unmanaged calling conventions.
780         (get_constant): Fix warning.
781
782 2004-08-28  Jambunathan K  <kjambunathan@novell.com>
783         * main.c: modified cattrs_for_method so that
784           emitting of ".param[] = ..." is complete.
785         
786         * get.c: Modified get_constant() so that
787           1. MONO_TYPE_CHAR now handles unicode characters
788           2. MONO_TYPE_I8 now emits int64(...)
789           3. MONO_TYPE_STRING emits a bytearray()
790
791 2004-08-18  Jambunathan K  <kjambunathan@novell.com>
792         * get.c: Changed dis_stringify_param to emit [opt] for parameters
793           that are marked as Optional.
794
795         * dump.c: Fixed dump_table_constant so that the parent field's
796           description is correctly displayed.
797
798 2004-08-08  Zoltan Varga  <vargaz@freemail.hu>
799
800         * get.c (get_typespec): Append '*' to pointer types. Fixes #62331.
801
802 2004-08-03  Martin Baulig  <martin@ximian.com>
803
804         * dump.c (method_dor_to_token): Moved to get.c and made public.
805
806         * get.c (get_method_override): New public function.
807
808         * main.c (dis_code): Added `.override' for override methods.
809
810 2004-08-02  Martin Baulig  <martin@ximian.com>
811
812         * get.c (dis_stringify_object_with_class): Include our generic
813         arguments in the method's class name.
814
815         * main.c (dis_generic_param_and_constraints): Use the new
816         constraints syntax.
817
818 2004-08-02  Martin Baulig  <martin@ximian.com>
819
820         * dump.c (dump_stream_blob): Format this nicely.
821         (dump_table_standalonesig): New public function.
822
823         * main.c (dis_locals): If --show-tokens was requested, print the
824         standalone signature token.
825         (table_list): Added "--standalonesig".
826
827 2004-07-09  Jackson Harper  <jackson@ximian.com>
828
829         * get.c: Make "class" the default so only valuetypes get the
830         "valuetype" modifier. Otherwise object, string, int,... will get
831         it.
832         
833 2004-07-08  Jackson Harper  <jackson@ximian.com>
834
835         * main.c: Spaces after visibility types.
836         
837 2004-07-06  Jackson Harper  <jackson@ximian.com>
838
839         * get.c: Add float cast for outputing floats. Patch by Steve Brown.
840         
841 2004-06-25  Jackson Harper  <jackson@ximian.com>
842
843         * get.c: Add a few more keywords to be escaped.
844         * main.c: MS's ildasm writes '// end of class' not '// end of
845         type'. The python.net tool searches for this string.
846         
847 2004-06-24  David Waite  <mass@akuma.org>
848
849         * dump.c: change to C90-style comments from C99/C++-style
850         
851 2004-06-23  Raja R Harinath  <rharinath@novell.com>
852
853         * main.c (dis_event_signature): Decode and print event_flags.
854
855 2004-06-20  Jackson Harper  <jackson@ximian.com>
856
857         * dis-cil.c: Handle switch statements with no labels.
858         
859 2004-06-19  Jackson Harper  <jackson@ximian.com>
860
861         * dump.c/h: New function to dump the contents of the blob
862         stream. I found it useful for debugging so I will share.
863         * main.c: Add --blob switch to dump the blob stream.
864         * monodis.1: Document --blob
865         
866 2004-06-19  Jackson Harper  <jackson@ximian.com>
867
868         * get.c/h: New function to stringify function pointers.
869         
870 2004-06-19  Jackson Harper  <jackson@ximian.com>
871
872         * get.c: Fix name escaping so we dont escape everything in the
873         world anymore.
874         
875 2004-06-11  Martin Baulig  <martin@ximian.com>
876
877         * get.c (get_methodref_signature): Include "vararg " in the
878         signature of a varargs method.
879
880 2004-06-11  Martin Baulig  <martin@ximian.com>
881
882         * get.c (get_methodref_signature): If we're a varargs method,
883         print "..." for the sentinel followed by the actual types.
884
885 2004-06-08  Martin Baulig  <martin@ximian.com>
886
887         * dump.c (dump_table_memberref): Added support for MethodDef
888         parents.        
889
890 2004-05-06  Bernie Solomon  <bernard@ugsolutions.com>
891
892         * dump.c:
893         * get.c:
894         * main.c:
895         * util.c:
896         * util.h: rename map_t dis_map_t to avoid AIX symbol clash
897
898 2004-04-01  Martin Baulig  <martin@ximian.com>
899
900         * dump.c (dump_table_memberref): Added support for TypeDef's.
901
902 2004-03-29  Jackson Harper  <jackson@ximian.com>
903
904         * main.c: Handle pinvoke info where there is not an impl_map
905         entry.
906         
907 2004-03-27  Vladimir Vukicevic  <vladimir@pobox.com>
908
909        * get.c (get_constant): output bool consts as bool(true) or
910        bool(false)  (to be same as ildasm, also what mono and ms
911        ilasm expect)
912
913 2004-01-31  Martin Baulig  <martin@ximian.com>
914
915         * get.c (get_methodspec): It's a methoddef or ref token.
916
917 2004-01-26  Martin Baulig  <martin@ximian.com>
918
919         * main.cs (--show-tokens): New command line argument to show
920         type tokens in the disassembly.
921
922         * get.c (get_typedef, get_typespec, get_typeref): If
923         `show_tokens', include the token in the type name.
924         (get_type): Do some type parsing here and include the token in the
925         returned type name if requested.
926         (get_method): Include tokens if requested.
927
928 2004-01-17  Zoltan Varga  <vargaz@freemail.hu>
929
930         * main.c get.c: Add support for dumping the custom attributes of
931         modules.
932
933 2004-01-09  Jackson Harper  <jackson@ximian.com>
934
935         * monodis.1: Add --show-method-tokens switch
936         * get.c: When stringifying methods show the method token if the
937         show-method-tokens flag is set.
938         * get.h: Add show_method_tokens flag
939         * main.c: Add --show-method-tokens switch
940         
941 2004-01-09  Jackson Harper  <jackson@ximian.com>
942
943         * monodis.1: Add typespec switch
944         
945 2004-01-08  Jackson Harper  <jackson@ximian.com>
946
947         * main.c: Add switch to dump typespec table.
948         * dump.c/dump.h: Add function for dumping typespec table.
949         
950 2003-12-19  Zoltan Varga  <vargaz@freemail.hu>
951
952         * dump.c (dump_table_exported): Fix output.
953
954 2003-12-08  Jackson Harper <jackson@ximian.com>
955
956         * main.cs: escape module names.
957         
958 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
959
960         * main.c (dis_field_list): Update after changes to 
961         mono_metadata_get_constant_index ().
962
963 2003-11-26  Zoltan Varga  <vargaz@freemail.hu>
964
965         * dump.c dump.h main.c: Added support for dumping the ImplMap table
966         (--implmap).
967
968         * main.c (dis_method_list): Avoid disassembling native code.
969
970 2003-11-19  Zoltan Varga  <vargaz@freemail.hu>
971
972         * get.c (dis_stringify_modifiers): Fix display of modreq and modopt.
973
974 Thu Nov 13 16:12:09 CET 2003 Paolo Molaro <lupus@ximian.com>
975
976         * util.h, dump.c: get rid of ugly CSIZE macro.
977
978 2003-11-01  Zoltan Varga  <vargaz@freemail.hu>
979
980         * main.c: Add disassembly of module, moduleref and file tables.
981
982         * get.h get.c: Add support for modulerefs.
983
984         * dump.c: Avoid crash on empty assembly table.
985
986 2003-10-22 Jackson Harper <jackson@ximian.com>
987
988         * main.c: Use escaped names for method, and type names. Initialize
989         the name table.
990         * main.c (visibility_map): Fix typo, should be nested family not
991         family
992         * main.c (dis_data): Use uppercase hex to avoid name conflicts.
993         * get.c/get.h: New method to get an escaped name. This method will
994         take a name and escape it if it is an ilasm keyword, or uses a non
995         id char. Use escaped names for type, method, field, and parameter names.
996         * get.c (get_typespec): A typespec can be used for anything, so we
997         need to handle all types not just modified types.
998         * get.c (dis_stringify_object_with_class): Handle nested classes
999         * get.c (get_token): Add field keyword to field tokens.
1000         
1001 2003-10-21 Jackson Harper <jackson@ximian.com>
1002
1003         * get.c (get_fieldref_signature): Use MONO_MEMBERREF_SIGNATURE in
1004         the member ref table.
1005         
1006 2003-10-21  Martin Baulig  <martin@ximian.com>
1007
1008         * get.c (get_typespec): Add MONO_TYPE_VAR and MONO_TYPE_MVAR.
1009
1010 2003-10-18 Jackson Harper <jackson@ximian.com>
1011
1012         * dis-cil.c (get_encoded_user_string): use g_strescape instead of
1013         escaping manually.
1014         * util.c (hex_dump): Use uppercase hex so there are no conflicts
1015         with ilasm keywords ie cf
1016         
1017 2003-10-17 Jackson Harper <jackson@ximian.com>
1018
1019         * dis-cil.c (get_encoded_user_string): Escape user strings when
1020         loading. ie ""quote"" should be "\"quote\"".
1021         * dis-cil.c (dissasemble_cil): Write SEH debug info into a comment
1022         block. Combine SEH blocks that have the same offset and length,
1023         this prevents creating invalid SEH blocks. 
1024         
1025 2003-10-15  Zoltan Varga  <vargaz@freemail.hu>
1026
1027         * get.c (get_ret_type): Remove needless warning message.
1028
1029 2003-10-13 Jackson Harper <jackson@ximian.com>
1030
1031         * get.c: stringify nested types properly ie Outer/Inner.
1032         
1033 2003-10-10 Jackson Harper <jackson@ximian.com>
1034
1035         * dump.c: When dumping methodspecs dump the full methodspec with
1036         signature, and dump the signature.
1037         
1038 2003-10-10 Jackson Harper <jackson@ximian.com>
1039
1040         * get.c/get.h: Add methods to get stringified methodspecs and
1041         method type parameters. 
1042         
1043 2003-10-09 Jackson Harper <jackson@ximian.com>
1044
1045         * main.c/get.c: Remove magic numbers, use constants.
1046         
1047 2003-10-08 Jackson Harper <jackson@ximian.com>
1048
1049         * main.c (dis_genericparam): renamed to
1050         dis_generic_param_and_constraints, allow a table type to be passed
1051         to the method so this could be used with generic methods (It is
1052         not though).
1053         * get.c/get.h (get_generic_param): method to stringify generic
1054         type and method parameters.
1055         * get.c (dis_stringify_method_signature): Add generic parameters.
1056         
1057 2003-10-08 Jackson Harper <jackson@ximian.com>
1058
1059         * main.c (dis_type): NULL cnst_block so we dont explode on
1060         interfaces.
1061         * main.c (dis_genericparam): oops, fix off-by-one error.
1062         
1063 2003-10-08 Jackson Harper <jackson@ximian.com>
1064
1065         * get.c/get.h add method to get a methoddef from an index, simplify
1066         get_typd_or_methdef, use new get_methoddef to get the method
1067         because we have a method index not a method token.
1068         
1069 2003-10-07 Jackson Harper <jackson@ximian.com>
1070
1071         * main.c: When dis. generic parameters the TypeOrMethodDef token
1072         only needs to be shifted 1 bit. Added dis of generic constraints.
1073         * get.c/get.h: New method for getting a TypeOrMethodDef token
1074         * dump.c: When dumping generic parameters and generic constraints
1075         output readable names instead of just tokens.
1076         
1077 2003-10-01 Jackson Harper <jackson@latitudegeo.com>
1078         
1079         * main.c: Fix visibility level names, when outputing pinvoke info
1080         quote the module and method names, properties have specialname,
1081         and rtspecialname flags (nothing else), dis global methods and
1082         fields FIXME: indentation issues.
1083         * get.h: declare get_fieldref_signature
1084         * get.c: Fix unsigned ints (not uint), single quote argument names
1085         (this is kinda a hack, ildasm will only single quote arg names
1086         that are ilasm keywords), remove fixme, we know what typedbyref
1087         means, output fieldref signatures instead of their token value.
1088         
1089 2003-09-19 Jackson Harper <jackson@latitudegeo.com>
1090
1091         * dis-cil.c: Output fault blocks, and filter blocks. If in a
1092         filter block outptut 0xDC as endfilter if in a fault output as
1093         endfault.
1094         
1095 2003-08-22  Zoltan Varga  <vargaz@freemail.hu>
1096
1097         * main.c (dis_event_list): Same for event methods.
1098
1099         * get.c (dis_stringify_method_signature): New argument specifying
1100         whenever to return a fully qualified method name.
1101         * dump.c main.c: Updated to work with the new function.
1102
1103         * main.c (dis_property_methods): Print fully qualified method names 
1104         for property methods. Fixes #46221.
1105
1106 2003-07-22 Jackson Harper <jackson@latitudegeo.com>
1107
1108         * main.c: Dissasemble generic type parameters for type
1109         definitions. TODO: Sort type parameters by index, and
1110         auto-generate names for parameters that have no name.
1111         
1112 Fri Jul 18 13:12:38 CEST 2003 Paolo Molaro <lupus@ximian.com>
1113
1114         * get.c: updates for array type representation changes.
1115
1116 2003-06-16 Jackson Harper <jackson@latitudegeo.com>
1117
1118         * get.c: Fix modopt and modreq
1119                 
1120 Thu May 29 12:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
1121
1122         * dump.c, get.c: misc fixes.
1123
1124 Wed May 7 16:50:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
1125
1126         * main.c: output custom attributes for method parameters.
1127
1128 Wed May 7 16:24:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
1129
1130         * main.c: output nested types inside their nesting class.
1131
1132 2003-04-12  Zoltan Varga  <vargaz@freemail.hu>
1133
1134         * get.c (dis_stringify_modifiers): Print a space between custom modifers.
1135         * get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
1136         * main.c: Print klass name at the end of each method to make it easier
1137         to find a given method.
1138
1139 2003-03-31  Miguel de Icaza  <miguel@ximian.com>
1140
1141         * main.c: Sorted command line options table by name.
1142
1143         * dump.c: Add support for dumping the new generic tables. 
1144
1145         * monodis.1: Update man page.
1146         
1147 2003-03-09 Jackson Harper <jackson@latitudegeo.com>
1148
1149         * main.c: Ouput implements clause as a comma seperated list.
1150
1151 Thu Feb  6 02:43:23 PST 2003 Piers Haken <piersh@friskit.com>
1152
1153         * dump.c: more warning cleanups
1154
1155 Mon Jan 27 17:16:50 CET 2003 Paolo Molaro <lupus@ximian.com>
1156
1157         * get.c: decode also the size info in get_marshal_info()
1158         for ByValStr and ByValArray.
1159
1160 Tue Sep 24 11:48:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
1161
1162         * main.c: use mono_type_size () to get the size of
1163         a blob of data for a type (Zoltan Varga spotted the bug).
1164
1165 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1166
1167         * get.c: closes bug #30814. Thanks to Zoltan Varga.
1168
1169 Mon Sep 16 18:49:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
1170
1171         * main.c, get.c, dump.c: updates for changes in libmetadata.
1172
1173 Fri Sep 13 15:39:41 CEST 2002 Paolo Molaro <lupus@ximian.com>
1174
1175         * main.c: dump public key.
1176         * get.c, util.h, util.c: prettyfy data dumps.
1177
1178 2002-08-28  Dick Porter  <dick@ximian.com>
1179
1180         * Makefile.am: Export HOST_CC for w32 builds
1181
1182 Tue Aug 6 12:40:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
1183
1184         * main.c: use mono_image_get_entry_point ().
1185
1186 Fri Jul 26 11:41:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
1187
1188         * main.c, dump.h, dump.c: output hash value in File table.
1189         Add dumper function for DeclSecurity table.
1190
1191 Fri Jul 19 14:20:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
1192
1193         * main.c: handle null parent.
1194
1195 2002-07-02  Martin Baulig  <martin@gnome.org>
1196
1197         * get.c (dis_stringify_object_with_class): New static function to
1198         stringify an object when we already have its class.
1199         (dis_stringify_object): Get the class and call dis_stringify_object().
1200         (get_method): Call dis_stringify_object_with_class() since we already
1201         have the object's class.
1202
1203 Thu Jun 20 11:50:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
1204
1205         * main.c, dump.c, dump.h: code to dump the MethodImpl table.
1206
1207 Mon Jun 17 17:31:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
1208
1209         * get.h, get.c: get_marshal_info() to get a marshal descriptor.
1210         * main.c, dump.h, dump.c: added code to dump the FieldMarshl table.
1211
1212 Tue Jun 11 14:11:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
1213
1214         * get.c: handle modulerefs.
1215         * main.c: fix --mscorlib argument handling.
1216
1217 Fri Jun 7 19:39:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
1218
1219         * get.c: handle typerefs of nested types. Don't print "."
1220         with an empty namespace.
1221
1222 Sat Jun 1 13:57:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
1223
1224         * main.c: print byte values correctly.
1225
1226 2002-05-20  Martin Baulig  <martin@gnome.org>
1227
1228         * main.c: Added `--output=FILENAME' command line option.
1229
1230         * monodis.1: Documented it here.
1231
1232 Thu May 16 17:21:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
1233
1234         * main.c, dump,c, get.h, get.c: diassemble custom attributes.
1235
1236 Wed May 15 16:02:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
1237
1238         * main.c: output field RVA data.
1239
1240 Fri May 10 21:00:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
1241
1242         * main.c: print field offset info if needed.
1243
1244 Wed May 1 17:07:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
1245
1246         * dump.c, dump.h, main.c: dump ExportedTypes table.
1247         * get.c: fix get_module (), remove magic numbers.
1248         * monodis.1: update manpage (hi miguel!:)
1249
1250 Mon Apr 29 12:12:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
1251
1252         * dump.c, dump.h, main.c: support for dumping the manifest resource table.
1253
1254 Mon Apr 15 11:35:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
1255
1256         * dump.c, dump.h, get.c, get.h, main.c: support for dumping the
1257         module table and guid values.
1258
1259 Mon Apr 8 17:15:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
1260
1261         * main.c: removed unneeded runtime invoke support.
1262
1263 Thu Mar 28 16:52:11 CET 2002 Paolo Molaro <lupus@ximian.com>
1264
1265         * dis-cil.c, dump.c, get.c, main.c, util.h: spring warning cleanup.
1266
1267 Thu Mar 28 11:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
1268
1269         * util.c: when an invalid flags combination is seen,
1270         return the string "invalid-flags", so disassembly can continue.
1271
1272 Tue Mar 19 18:15:29 CET 2002 Paolo Molaro <lupus@ximian.com>
1273
1274         * dis-cil.c: use unsigned for variables.
1275
1276 Sat Mar 16 19:13:57 CET 2002 Paolo Molaro <lupus@ximian.com>
1277
1278         * dump.c: handle TypeSpec token in memberref table dump.
1279
1280 2002-03-08  Nick Drochak  <ndrochak@gol.com>
1281
1282         * monodis.1: Add info about new parameter
1283         * main.c: Add flag to remember if user wants to us mscorlib for
1284         non-corilb assembly names
1285         * get.c(get_typedef): use mscorlib for assembly name only
1286         if user specifies it with a command line parameter. Default
1287         behavior is now to use actual assembly name.
1288  
1289 Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <lupus@ximian.com>
1290
1291         * dump.c: print index of the methodsemantics table.
1292         * main.cs: print event information.
1293
1294 Wed Feb 20 22:10:48 CET 2002 Paolo Molaro <lupus@ximian.com>
1295
1296         * dump.c: fix the fix and more complete custom attribute decoder.
1297
1298 Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <lupus@ximian.com>
1299
1300         * dump.c: the prolog is before each arg in the custom attribute blob.
1301
1302 Mon Feb 18 15:48:38 CET 2002 Paolo Molaro <lupus@ximian.com>
1303
1304         * get.c: include last param.
1305
1306 Thu Feb 14 18:59:37 CET 2002 Paolo Molaro <lupus@ximian.com>
1307
1308         * main.c: output pack and size info if needed.
1309
1310 2002-02-13  Dietmar Maurer  <dietmar@ximian.com>
1311
1312         * *.c: s/MonoMetadata/MonoImage/ 
1313
1314 Tue Feb 12 14:33:53 CET 2002 Paolo Molaro <lupus@ximian.com>
1315
1316         * dump.c: make all the indexes printed starting from 1.
1317
1318 Fri Feb 8 19:28:31 CET 2002 Paolo Molaro <lupus@ximian.com>
1319
1320         * get.c: don't abort if a methodref is not found, usa alternative way
1321         to get the method name.
1322
1323 Fri Feb 8 12:29:41 CET 2002 Paolo Molaro <lupus@ximian.com>
1324
1325         * Makefile.am: correct linking order.
1326         * dis-cil.c: use opcode info from opcodes.h instead of a copy of the data.
1327
1328 Thu Jan 31 18:21:12 CET 2002 Paolo Molaro <lupus@ximian.com>
1329
1330         * dis-cil.c: reverse order when outputting start try blocks.
1331
1332 Mon Jan 14 17:00:23 CET 2002 Paolo Molaro <lupus@ximian.com>
1333
1334         * dump.c: more info in method table dump.
1335
1336 Mon Dec 24 17:24:13 CET 2001 Paolo Molaro <lupus@ximian.com>
1337
1338         * main.c, dump.h, dump.c: add dump_table_nestedclass().
1339         * dis-cil.c: output int64 as hex.
1340
1341 Tue Dec 18 18:48:00 CET 2001 Paolo Molaro <lupus@ximian.com>
1342
1343         * main.c: use mono_metadata_methods_from_property() and
1344         mono_metadata_properties_from_typedef() from metadata instead of
1345         custom code.
1346
1347 Tue Nov 27 16:31:52 CET 2001 Paolo Molaro <lupus@ximian.com>
1348
1349         * main.c: output a marker for method (used in debug support).
1350
1351 Mon Nov 19 11:32:28 CET 2001 Paolo Molaro <lupus@ximian.com>
1352
1353         * main.c: remove arch_create_jit_trampoline().
1354
1355 Thu Nov 15 17:42:03 CET 2001 Paolo Molaro <lupus@ximian.com>
1356
1357         * dump.c: decode more info in the constant table.
1358         * get.c: show literals the same way ildasm does.
1359         * main.c: decode literal values for fields.
1360
1361 Fri Nov 2 19:04:21 CET 2001 Paolo Molaro <lupus@ximian.com>
1362
1363         * main.c, dump, dump.c: decode the customattr table.
1364         * dump.c: handle also field signature when dumping the memberref
1365         table.
1366
1367 2001-11-07  Miguel de Icaza  <miguel@ximian.com>
1368
1369         * main.c (dis_property_methods): Added missing colon which avoided
1370         setting loc.t
1371
1372 2001-10-10  Dietmar Maurer  <dietmar@ximian.com>
1373
1374         * main.c (arch_compile_method):  added to compute vtable entry
1375
1376 Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
1377
1378         * get.c, get.h: MonoArray changed in MonoArrayType.
1379         * main.c: guard against calling bsearch with a NULL pointer
1380         (pointed out by Laurent Rioux, smoux).
1381
1382 Thu Oct 4 19:05:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
1383
1384         * dis-cil.c: fix printing of exception stuff.
1385         * dump.c: display some more info in the typedef table dump.
1386         * main.c: typo fix and method list fix.
1387
1388 2001-10-04  Dick Porter  <dick@ximian.com>
1389
1390         * meta.h: include mono-endian.h not endian.h
1391
1392 2001-10-02  Dietmar Maurer  <dietmar@ximian.com>
1393
1394         * get.c (get_method): always write namespace and class name.
1395
1396 2001-09-06  Miguel de Icaza  <miguel@ximian.com>
1397
1398         * monodis.1: Update man page.
1399
1400 Tue Aug 28 15:54:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
1401
1402         * main.c, dump.c, dump.h, get.c: added dump_table_interfaceimpl ().
1403         Output info about interfaces when disassembling a type. Many small
1404         changes to make the output correct assembler.
1405
1406 Mon Aug 27 20:13:49 CEST 2001 Paolo Molaro <lupus@ximian.com>
1407
1408         * dis-cil.c, get.c: some endian fixes.
1409         * main.c: colon-separate version numbers. Print also namespace
1410         when outputting class information.
1411
1412 Fri Aug 24 16:10:12 CEST 2001 Paolo Molaro <lupus@ximian.com>
1413
1414         * get.c, main.c, get.h: updates for MonoParam merge in MonoType.
1415
1416 2001-08-24  Dietmar Maurer  <dietmar@ximian.com>
1417
1418         * main.c (disassemble_file): use assembly_open instead of image_open
1419
1420 Wed Aug 22 16:22:22 CEST 2001 Paolo Molaro <lupus@ximian.com>
1421
1422         * dis-cil.c: add a newline after branch instructions. Move
1423         end of exception handler code at the end.
1424
1425 Tue Aug 21 18:51:05 CEST 2001 Paolo Molaro <lupus@ximian.com>
1426
1427         * dis-cil.c: correctly print the label for multi-byte opcodes.
1428
1429 Mon Aug 20 19:33:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
1430
1431         * util.c: add a space when decoding multiple flags.
1432         * dump.c, dump.h, main.c: decode the property map and
1433         methodsemantics tables. Disassemble property information
1434         to .property IL directives.
1435         * get.c: allow passing a NULL as method in dis_stringify_method ()
1436         if a methoddef_row is given.
1437         
1438 2001-08-20  Dietmar Maurer  <dietmar@ximian.com>
1439
1440         * get.c (dis_stringify_type): support pinned values
1441
1442 Sat Aug 18 11:24:07 CEST 2001 Paolo Molaro <lupus@ximian.com>
1443
1444         * dump.c, get.c, get.h, main.c: dis_stringify_method_signature()
1445         gets an optional methodef_row index instead of a name, so it
1446         can figure out also the names and attributes of params.
1447         parse_method_signature() and free_method_signature() removed as
1448         they are useless now.
1449
1450 2001-08-17  Dietmar Maurer  <dietmar@ximian.com>
1451
1452         * main.c (pinvoke_info): bug fix - use the right column in the table
1453
1454 2001-08-14  Dietmar Maurer  <dietmar@ximian.com>
1455
1456         * get.c (dis_stringify_type): use strconcat instead of strjoin
1457
1458 Sat Aug 4 12:36:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
1459
1460         * get.c, get.h, main.c, dump.c: implement dis_stringify_method_signature().
1461         More magic constants replaced by enum values (spotted at least 3 real bugs
1462         doing this). Print usage information if an unknown option is given.
1463         Print the full signature when dumping the method table.
1464         Changed method and field table dumps to show the typedef name the field
1465         or method belongs to.
1466
1467 Fri Aug 3 18:30:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
1468
1469         * get.c (get_method): fix use of unitialized variable and
1470         remove magic constants all over the place.
1471
1472 Wed Aug 1 22:46:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
1473
1474         * dis-cil.c: properly decode the switch opcode.
1475         
1476 2001-08-01  Dietmar Maurer  <dietmar@ximian.com>
1477
1478         * get.c (get_token): decode typedef and typeref tokens
1479
1480         * main.c (dis_method_list): don't decode the next row, that is
1481         totally unnecessary
1482
1483 Tue Jul 31 17:48:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
1484
1485         * dis-cil.c, dis-cil.h, dump.c, dump.h, get.c, get.h, main.c, push-pop.h:
1486         massive namespace cleanup.
1487         * main.c: dis_locals() now just strigifies a MonoMethodHeader.
1488
1489 2001-07-31  Dietmar Maurer  <dietmar@ximian.com>
1490
1491         * main.c (pinvoke_flags): impl.
1492
1493 Mon Jul 30 20:08:37 CEST 2001 Paolo Molaro <lupus@ximian.com>
1494
1495         * dis-cil.c, dis-cil.h, main.c: changes to disassemble also
1496         the information about try/catch/finally blocks.
1497
1498 2001-07-27  Dietmar Maurer  <dietmar@ximian.com>
1499
1500         * get.c (dis_stringify_type): return "void" if !type
1501         (dis_stringify_type): print type* instead of *type
1502
1503 Thu Jul 26 13:22:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
1504
1505         * dis-cil.c, dump.c, get.c, main.c: updates to match changes in metadata.
1506         Removed dead code.
1507
1508 2001-07-17  Miguel de Icaza  <miguel@ximian.com>
1509
1510         * main.c (usage): Print out all the arguments.
1511
1512         * get.c, main.c, dump.c: Remove `expand', `get_encoded_value',
1513         `get_blob_encoded_size' and replaced with the proper functions
1514         from metadata.c
1515
1516 2001-07-15  Miguel de Icaza  <miguel@ximian.com>
1517
1518         * main.c (dis_code): Only display .entrypoint when we are dealing
1519         with a module that contains an entry point.  This removes a bunch
1520         of warnings for .dll dumping
1521
1522 Sun Jul 15 17:29:10 CEST 2001 Paolo Molaro <lupus@ximian.com>
1523
1524         * get.h,get.c: added some dis_stringify_object() functions:
1525         metadata decoding is now done in libmetadata. Still need to use
1526         them throughhout the code (and move other decode code to
1527         metadata). Fix also field decoding (band-aid until we load
1528         also referenced assemblies).
1529         * dis/main.c: start using the new routines.
1530
1531 2001-07-13  Miguel de Icaza  <miguel@ximian.com>
1532
1533         * get.c (get_method): GOOD. Implemented this other bad boy.
1534
1535 2001-07-12  Miguel de Icaza  <miguel@ximian.com>
1536
1537         * get.c (get_token_type): Implement TOKEN_TYPE_TYPE_SPEC.
1538         (get_typespec): Implement.
1539         (get_typedef_or_ref): Use get_typespec.
1540
1541         * dis-cil.c (dissasemble_cil): Implement InlineField
1542         (dissasemble_cil): Implement InlineTok.
1543
1544         * get.c (get_token, get_field): Implemented.  Worked around lame
1545         tables in the spec.
1546
1547 Wed Jul 11 18:52:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
1548
1549         * dis-cil.c: output real name of local var.
1550         * dump.c: output more info about fields (flags and type). Properly decode
1551         Property signatures. Decode also method table.
1552         * main.c: Fix local variable info. Hopefully fix field and property list.
1553
1554 Mon Jul  9 16:39:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
1555
1556         * dump.c: write stuff to output, not stderr. Give more info for properties.
1557         * dump.c,dump.h,main.c: implement dump_table_event(), dump_table_file(),
1558         dump_table_moduleref().
1559         * get.c: first attempt to decode string constants, need to find if and where
1560         this is actually specified.
1561
1562 Fri Jul  6 19:49:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
1563
1564         * dump.c,dump.h: implement dump_table_property().
1565         * main.c: implement local variable info disassembling.
1566         Annotate entrypoint method. Remove memory leak in 
1567         parse_method_signature ().
1568
1569 2001-07-04  Miguel de Icaza  <miguel@ximian.com>
1570         
1571         * get.c (get_methodref_signature): Implement.
1572
1573         * dump.c (dump_table_memberref): Add memberref dumping.
1574
1575 Tue,  3 Jul 2001 18:32:10 +0200 Paolo Molaro <lupus@ximian.com>
1576
1577         * main.c: return on failure.
1578
1579 2001-07-02  Miguel de Icaza  <miguel@ximian.com>
1580
1581         * dis-cil.c (get_encoded_user_string): Return a string from the
1582         #US heap. o
1583
1584         * get.c (get_blob_encoded_size): Implement 23.1.4 decoding.
1585
1586 2001-07-01  Miguel de Icaza  <miguel@ximian.com>
1587
1588         * dis-cil.c: New file.  CIL opcode dissasembler.
1589
1590 2001-06-27  Miguel de Icaza  <miguel@ximian.com>
1591
1592         * main.c: Split code.
1593
1594 2001-06-22  Miguel de Icaza  <miguel@ximian.com>
1595
1596         * main.c: More work on the disassembler and on the understanding
1597         of the metadata file format.   
1598