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