updating to the latest module.
[mono.git] / mono / dis / ChangeLog
1 2005-04-23  Ankit Jain  <ankit@corewars.org>
2
3         * get.c : Revert Atsushi's earlier patch. Its already been fixed with r43342.
4
5 2005-04-22  Atsushi Enomoto  <atsushi@ximian.com>
6
7         * get.c : arraytype[,] should not be wrapped as 'arraytype[]'.
8
9 2005-04-20  Ankit Jain  <ankit@corewars.org>
10
11         Fix #74521.
12         * get.c (get_generic_param, get_method_core, get_methoddef): Dont use
13         dis_stringify_object_with_class directly, use dis_stringify_type instead.
14
15 2005-04-20  Ankit Jain  <ankit@corewars.org>
16
17         Fix #74657.
18         * main.c (dis_field_list): Print default value if field has
19         HAS_DEFAULT flag set.
20
21 2005-04-12  Ankit Jain  <ankit@corewars.org>
22         
23         Fix #74579.
24         * main.c (dis_mresource): New. Dump embedded managed resources.
25         (main, usage): Add '--mresources' argument.
26
27 2005-04-08  Ankit Jain  <radical@corewars.org>
28
29         Fix #74374.
30         * main.c (dis_type): Add 'is_nested' and 'forward' arguments.  If
31         'is_nested', don't emit .namespace directive even if namespace is
32         set.  If 'forward', print only types.
33         (dis_types): Update to allow emitting forward declarations.
34         (disassemble_file): Emit forward declarations if requested.
35         (main, usage): Add '--forward-decls' argument.
36         * get.c (get_typedef): When printing a nested type, don't include
37         the namespace again, even if it is set.
38
39 2005-04-05  Zoltan Varga  <vargaz@freemail.hu>
40
41         * dump.c dis-cil.c: Apply patches from freebsd ports collection.
42
43 2005-04-04  Zoltan Varga  <vargaz@freemail.hu>
44
45         * get.c (get_constant): Applied patch from Ankit Jain (radical@gmail.com). Fixes #74367.
46
47 2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
48
49         * dis-cil.c, dump.c: Add mono-compiler.h header to allow/ease 
50         compilation with non-GCC compilers.
51
52 2005-03-04  Zoltan Varga  <vargaz@freemail.hu>
53
54         * get.c (dis_stringify_marshal_spec): Fix this after recent runtime
55         changes.
56
57 2005-03-01  Zoltan Varga  <vargaz@freemail.hu>
58
59         * get.c: Output marshal info for parameters.
60
61 2005-02-13  Zoltan Varga  <vargaz@freemail.hu>
62
63         * main.c: Output managed resources as well. Fixes #72033.
64
65 2005-02-01  Raja R Harinath  <rharinath@novell.com>
66
67         * get.c (get_method_core): Use mono_method_signature (mh), not
68         mh->signature.
69
70 2005-01-30  Zoltan Varga  <vargaz@freemail.hu>
71
72         * get.c dis-cil.c dump.c: Fix 64 bit warnings.
73
74 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
75
76         * dump.c:
77         * dis-cil.c: added isinf() for Solaris, that does not seem to have it.
78         Fixes the build on Solaris.
79
80 2004-12-13  Miguel de Icaza  <miguel@ximian.com>
81
82         * dis-cil.c, dump.c: Encode special constant +Inf, -Inf and NaN
83         using hex constants instead of letting libc print the values.
84
85 2004-12-11  Martin Baulig  <martin@ximian.com>
86
87         * get.c (get_typespec): Added `gboolean is_def' argument; removed
88         the special case for MONO_TYPE_VAR/MVAR and pass `is_def' down to
89         dis_stringify_type().
90         (get_escaped_name): Allow `!'.  
91
92 2004-12-11  Martin Baulig  <martin@ximian.com>
93
94         * get.c (get_token): Escape typedefs.
95
96 2004-12-11  Martin Baulig  <martin@ximian.com>
97
98         * get.c (get_escaped_name): Correctly escape nested classes.
99
100 2004-12-11  Martin Baulig  <martin@ximian.com>
101
102         * get.c (get_class_name): Renamed to get_escaped_class_name() and
103         return an escaped class name; correctly escape nested classes.
104
105 2004-12-11  Martin Baulig  <martin@ximian.com>
106
107         * get.c (dis_stringify_type): Added `gboolean is_def' argument; if
108         false, display type parameters as numbers and not as names.
109         (dis_stringify_object_with_class): Added `gboolean is_def' argument.
110         (dis_stringify_array): Likewise.
111
112 2004-12-10  Martin Baulig  <martin@ximian.com>
113
114         * get.c (init_key_table): Added `type' and `strict'.
115         (get_generic_param): Also escape the type parameter names.
116         Correctly handle multiple constraints.
117
118 2004-12-10  Martin Baulig  <martin@ximian.com>
119
120         * get.c (get_fieldref_signature): Escape the field type and name
121         here, too.
122
123 2004-12-10  Martin Baulig  <martin@ximian.com>
124
125         Started to add generics support to monodis.
126
127         * get.c (get_typedef_or_ref): Added `MonoGenericContext *'.
128         (get_field_signature, get_field): Likewise.
129         (get_methodref_signature, get_methodspec): Likewise.
130         (get_token, get_token_type, get_typespec): Likewise.
131         (get_method, get_method_type_param): Likewise.
132         (get_method_override, dis_stringify_method_signature): Likewise.
133         (get_type, get_ret_type, get_param): Likewise.
134
135         * dis-cil.c (disasemble_cil): Added `MonoGenericContext *'.
136
137 2004-12-09  Martin Baulig  <martin@ximian.com>
138
139         * get.c (get_generic_param): Take a `MonoGenericContainer *' and
140         use it to print things instead of manually parsing the metadata.
141
142         * main.c (dis_generic_param_and_constraints): Removed, use
143         get_generic_param() instead.
144         (dis_method_list): Added `MonoGenericContext *' argument.
145
146 Mon Dec 6 13:31:48 CET 2004 Paolo Molaro <lupus@ximian.com>
147
148         * main.c: add a --filter=filename option to load a file
149         with a list of types, fields, methods to disassemble.
150
151 2004-12-02  Miguel de Icaza  <miguel@ximian.com>
152
153         * main.c: Rename compilercontrolled to privatescope
154
155         * get.c (get_class_name): Correct implementation that correctly
156         handles nested classes.
157
158 2004-11-26  Miguel de Icaza  <miguel@ximian.com>
159
160         * main.c: Better implementation of the quote keyword, list all of
161         the known keywords to ildasm here. 
162
163         * get.c (dis_stringify_object_with_class): Take an argument
164         `prefix' that controls whether the `class', `valuetype' labels are
165         used.  This is needed for the catch clause that takes the type
166         directly. 
167         (get_method_core): Rename get_method to get_method_core, and allow
168         for only part of the signature to be specified, so we can produce
169         .override signatures correctly.
170         (get_method_override): Pass false as the `fullsig' argument.
171
172         (get_typedef): no longer quote the type, we quote in the call site
173         elsewhere.   Avoids double quotes.
174         
175         * main.c (quote_keyword): Quote keywords.
176
177 Tue Nov 9 17:29:28 CET 2004 Paolo Molaro <lupus@ximian.com>
178
179         * dis-cil.c, get.c, get.h: update to exception clause structure changes.
180
181 2004-11-08  Ben Maurer  <bmaurer@ximian.com>
182
183         * get.c, dump.c: warning free.
184
185 2004-10-21  Jackson Harper  <jackson@ximian.com>
186
187         * get.c: Escape typedef names.
188
189 2004-10-19    <vargaz@freemail.hu>
190
191         * main.c: Applied patch from Alexandre Rocha Lima e Marcondes  (alexandremarcondes@psl-pr.softwarelivre.org). Really fix 2.95 build.
192
193 2004-10-04  Sebastien Pouliot  <sebastien@ximian.com>
194
195         * dump.c: Added new "internal" security actions for non-CAS demands:
196         NonCasDemand, NonCasLinkDemand and NonCasInheritance.
197         * main.c: Added new "internal" security actions for non-CAS demands:
198         noncasdemand, noncaslinkdemand and noncasinheritance.
199
200 2004-09-24  Zoltan Varga  <vargaz@freemail.hu>
201
202         * main.c: Add support for pinvoke flags BestFit and 
203         ThrowOnUnmappableChar.
204
205 2004-09-23  Miguel de Icaza  <miguel@ximian.com>
206
207         * main.c (dis_directive_assemblyref): Dump the locale and public
208         key tokens 
209
210         * get.c (dis_stringify_object_with_class): Escape assembly name. 
211
212         * main.c (dis_directive_assemblyref): Escape assembly name
213
214 2004-09-21  Martin Baulig  <martin@ximian.com>
215
216         * main.c (main): If just a single assembly was specified, use the
217         runtime version it requires.
218
219 2004-09-16  Sebastien Pouliot  <sebastien@ximian.com>
220
221         * dump.c: Added new security actions added in 2.0: LinkDemandChoice,
222         InheritanceDemandChoice and DemandChoice.
223         * main.c: Added ".permissionset" to output IL. Removed "hassecurity"
224         as MS ilasm can't compile it.
225
226 2004-09-16  Zoltan Varga  <vargaz@freemail.hu>
227
228         * get.c (get_token): Add support for memberrefs.
229
230 2004-09-06  Zoltan Varga  <vargaz@freemail.hu>
231
232         * main.c: Fix build && warnings.
233
234 2004-09-05  Jambunathan K  <kjambunathan@novell.com>
235         * main.c (dump_cattrs_list): Newly carved out of dump_cattrs.
236         
237         Renamed cattrs_for_method() to more meaningful
238         dump_cattrs_for_method_params()
239         
240         (dump_cattrs_for_method_params): Fixed so that ".param[]" gets
241         dumped only when necessary. i.e., when a method parameter has
242         either a default value and/or when it has a custom attribute.
243
244 2004-09-06  Zoltan Varga  <vargaz@freemail.hu>
245
246         * get.c: Fix printing of unmanaged calling conventions.
247         (get_constant): Fix warning.
248
249 2004-08-28  Jambunathan K  <kjambunathan@novell.com>
250         * main.c: modified cattrs_for_method so that
251           emitting of ".param[] = ..." is complete.
252         
253         * get.c: Modified get_constant() so that
254           1. MONO_TYPE_CHAR now handles unicode characters
255           2. MONO_TYPE_I8 now emits int64(...)
256           3. MONO_TYPE_STRING emits a bytearray()
257
258 2004-08-18  Jambunathan K  <kjambunathan@novell.com>
259         * get.c: Changed dis_stringify_param to emit [opt] for parameters
260           that are marked as Optional.
261
262         * dump.c: Fixed dump_table_constant so that the parent field's
263           description is correctly displayed.
264
265 2004-08-08  Zoltan Varga  <vargaz@freemail.hu>
266
267         * get.c (get_typespec): Append '*' to pointer types. Fixes #62331.
268
269 2004-08-03  Martin Baulig  <martin@ximian.com>
270
271         * dump.c (method_dor_to_token): Moved to get.c and made public.
272
273         * get.c (get_method_override): New public function.
274
275         * main.c (dis_code): Added `.override' for override methods.
276
277 2004-08-02  Martin Baulig  <martin@ximian.com>
278
279         * get.c (dis_stringify_object_with_class): Include our generic
280         arguments in the method's class name.
281
282         * main.c (dis_generic_param_and_constraints): Use the new
283         constraints syntax.
284
285 2004-08-02  Martin Baulig  <martin@ximian.com>
286
287         * dump.c (dump_stream_blob): Format this nicely.
288         (dump_table_standalonesig): New public function.
289
290         * main.c (dis_locals): If --show-tokens was requested, print the
291         standalone signature token.
292         (table_list): Added "--standalonesig".
293
294 2004-07-09  Jackson Harper  <jackson@ximian.com>
295
296         * get.c: Make "class" the default so only valuetypes get the
297         "valuetype" modifier. Otherwise object, string, int,... will get
298         it.
299         
300 2004-07-08  Jackson Harper  <jackson@ximian.com>
301
302         * main.c: Spaces after visibility types.
303         
304 2004-07-06  Jackson Harper  <jackson@ximian.com>
305
306         * get.c: Add float cast for outputing floats. Patch by Steve Brown.
307         
308 2004-06-25  Jackson Harper  <jackson@ximian.com>
309
310         * get.c: Add a few more keywords to be escaped.
311         * main.c: MS's ildasm writes '// end of class' not '// end of
312         type'. The python.net tool searches for this string.
313         
314 2004-06-24  David Waite  <mass@akuma.org>
315
316         * dump.c: change to C90-style comments from C99/C++-style
317         
318 2004-06-23  Raja R Harinath  <rharinath@novell.com>
319
320         * main.c (dis_event_signature): Decode and print event_flags.
321
322 2004-06-20  Jackson Harper  <jackson@ximian.com>
323
324         * dis-cil.c: Handle switch statements with no labels.
325         
326 2004-06-19  Jackson Harper  <jackson@ximian.com>
327
328         * dump.c/h: New function to dump the contents of the blob
329         stream. I found it useful for debugging so I will share.
330         * main.c: Add --blob switch to dump the blob stream.
331         * monodis.1: Document --blob
332         
333 2004-06-19  Jackson Harper  <jackson@ximian.com>
334
335         * get.c/h: New function to stringify function pointers.
336         
337 2004-06-19  Jackson Harper  <jackson@ximian.com>
338
339         * get.c: Fix name escaping so we dont escape everything in the
340         world anymore.
341         
342 2004-06-11  Martin Baulig  <martin@ximian.com>
343
344         * get.c (get_methodref_signature): Include "vararg " in the
345         signature of a varargs method.
346
347 2004-06-11  Martin Baulig  <martin@ximian.com>
348
349         * get.c (get_methodref_signature): If we're a varargs method,
350         print "..." for the sentinel followed by the actual types.
351
352 2004-06-08  Martin Baulig  <martin@ximian.com>
353
354         * dump.c (dump_table_memberref): Added support for MethodDef
355         parents.        
356
357 2004-05-06  Bernie Solomon  <bernard@ugsolutions.com>
358
359         * dump.c:
360         * get.c:
361         * main.c:
362         * util.c:
363         * util.h: rename map_t dis_map_t to avoid AIX symbol clash
364
365 2004-04-01  Martin Baulig  <martin@ximian.com>
366
367         * dump.c (dump_table_memberref): Added support for TypeDef's.
368
369 2004-03-29  Jackson Harper  <jackson@ximian.com>
370
371         * main.c: Handle pinvoke info where there is not an impl_map
372         entry.
373         
374 2004-03-27  Vladimir Vukicevic  <vladimir@pobox.com>
375
376        * get.c (get_constant): output bool consts as bool(true) or
377        bool(false)  (to be same as ildasm, also what mono and ms
378        ilasm expect)
379
380 2004-01-31  Martin Baulig  <martin@ximian.com>
381
382         * get.c (get_methodspec): It's a methoddef or ref token.
383
384 2004-01-26  Martin Baulig  <martin@ximian.com>
385
386         * main.cs (--show-tokens): New command line argument to show
387         type tokens in the disassembly.
388
389         * get.c (get_typedef, get_typespec, get_typeref): If
390         `show_tokens', include the token in the type name.
391         (get_type): Do some type parsing here and include the token in the
392         returned type name if requested.
393         (get_method): Include tokens if requested.
394
395 2004-01-17  Zoltan Varga  <vargaz@freemail.hu>
396
397         * main.c get.c: Add support for dumping the custom attributes of
398         modules.
399
400 2004-01-09  Jackson Harper  <jackson@ximian.com>
401
402         * monodis.1: Add --show-method-tokens switch
403         * get.c: When stringifying methods show the method token if the
404         show-method-tokens flag is set.
405         * get.h: Add show_method_tokens flag
406         * main.c: Add --show-method-tokens switch
407         
408 2004-01-09  Jackson Harper  <jackson@ximian.com>
409
410         * monodis.1: Add typespec switch
411         
412 2004-01-08  Jackson Harper  <jackson@ximian.com>
413
414         * main.c: Add switch to dump typespec table.
415         * dump.c/dump.h: Add function for dumping typespec table.
416         
417 2003-12-19  Zoltan Varga  <vargaz@freemail.hu>
418
419         * dump.c (dump_table_exported): Fix output.
420
421 2003-12-08  Jackson Harper <jackson@ximian.com>
422
423         * main.cs: escape module names.
424         
425 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
426
427         * main.c (dis_field_list): Update after changes to 
428         mono_metadata_get_constant_index ().
429
430 2003-11-26  Zoltan Varga  <vargaz@freemail.hu>
431
432         * dump.c dump.h main.c: Added support for dumping the ImplMap table
433         (--implmap).
434
435         * main.c (dis_method_list): Avoid disassembling native code.
436
437 2003-11-19  Zoltan Varga  <vargaz@freemail.hu>
438
439         * get.c (dis_stringify_modifiers): Fix display of modreq and modopt.
440
441 Thu Nov 13 16:12:09 CET 2003 Paolo Molaro <lupus@ximian.com>
442
443         * util.h, dump.c: get rid of ugly CSIZE macro.
444
445 2003-11-01  Zoltan Varga  <vargaz@freemail.hu>
446
447         * main.c: Add disassembly of module, moduleref and file tables.
448
449         * get.h get.c: Add support for modulerefs.
450
451         * dump.c: Avoid crash on empty assembly table.
452
453 2003-10-22 Jackson Harper <jackson@ximian.com>
454
455         * main.c: Use escaped names for method, and type names. Initialize
456         the name table.
457         * main.c (visibility_map): Fix typo, should be nested family not
458         family
459         * main.c (dis_data): Use uppercase hex to avoid name conflicts.
460         * get.c/get.h: New method to get an escaped name. This method will
461         take a name and escape it if it is an ilasm keyword, or uses a non
462         id char. Use escaped names for type, method, field, and parameter names.
463         * get.c (get_typespec): A typespec can be used for anything, so we
464         need to handle all types not just modified types.
465         * get.c (dis_stringify_object_with_class): Handle nested classes
466         * get.c (get_token): Add field keyword to field tokens.
467         
468 2003-10-21 Jackson Harper <jackson@ximian.com>
469
470         * get.c (get_fieldref_signature): Use MONO_MEMBERREF_SIGNATURE in
471         the member ref table.
472         
473 2003-10-21  Martin Baulig  <martin@ximian.com>
474
475         * get.c (get_typespec): Add MONO_TYPE_VAR and MONO_TYPE_MVAR.
476
477 2003-10-18 Jackson Harper <jackson@ximian.com>
478
479         * dis-cil.c (get_encoded_user_string): use g_strescape instead of
480         escaping manually.
481         * util.c (hex_dump): Use uppercase hex so there are no conflicts
482         with ilasm keywords ie cf
483         
484 2003-10-17 Jackson Harper <jackson@ximian.com>
485
486         * dis-cil.c (get_encoded_user_string): Escape user strings when
487         loading. ie ""quote"" should be "\"quote\"".
488         * dis-cil.c (dissasemble_cil): Write SEH debug info into a comment
489         block. Combine SEH blocks that have the same offset and length,
490         this prevents creating invalid SEH blocks. 
491         
492 2003-10-15  Zoltan Varga  <vargaz@freemail.hu>
493
494         * get.c (get_ret_type): Remove needless warning message.
495
496 2003-10-13 Jackson Harper <jackson@ximian.com>
497
498         * get.c: stringify nested types properly ie Outer/Inner.
499         
500 2003-10-10 Jackson Harper <jackson@ximian.com>
501
502         * dump.c: When dumping methodspecs dump the full methodspec with
503         signature, and dump the signature.
504         
505 2003-10-10 Jackson Harper <jackson@ximian.com>
506
507         * get.c/get.h: Add methods to get stringified methodspecs and
508         method type parameters. 
509         
510 2003-10-09 Jackson Harper <jackson@ximian.com>
511
512         * main.c/get.c: Remove magic numbers, use constants.
513         
514 2003-10-08 Jackson Harper <jackson@ximian.com>
515
516         * main.c (dis_genericparam): renamed to
517         dis_generic_param_and_constraints, allow a table type to be passed
518         to the method so this could be used with generic methods (It is
519         not though).
520         * get.c/get.h (get_generic_param): method to stringify generic
521         type and method parameters.
522         * get.c (dis_stringify_method_signature): Add generic parameters.
523         
524 2003-10-08 Jackson Harper <jackson@ximian.com>
525
526         * main.c (dis_type): NULL cnst_block so we dont explode on
527         interfaces.
528         * main.c (dis_genericparam): oops, fix off-by-one error.
529         
530 2003-10-08 Jackson Harper <jackson@ximian.com>
531
532         * get.c/get.h add method to get a methoddef from an index, simplify
533         get_typd_or_methdef, use new get_methoddef to get the method
534         because we have a method index not a method token.
535         
536 2003-10-07 Jackson Harper <jackson@ximian.com>
537
538         * main.c: When dis. generic parameters the TypeOrMethodDef token
539         only needs to be shifted 1 bit. Added dis of generic constraints.
540         * get.c/get.h: New method for getting a TypeOrMethodDef token
541         * dump.c: When dumping generic parameters and generic constraints
542         output readable names instead of just tokens.
543         
544 2003-10-01 Jackson Harper <jackson@latitudegeo.com>
545         
546         * main.c: Fix visibility level names, when outputing pinvoke info
547         quote the module and method names, properties have specialname,
548         and rtspecialname flags (nothing else), dis global methods and
549         fields FIXME: indentation issues.
550         * get.h: declare get_fieldref_signature
551         * get.c: Fix unsigned ints (not uint), single quote argument names
552         (this is kinda a hack, ildasm will only single quote arg names
553         that are ilasm keywords), remove fixme, we know what typedbyref
554         means, output fieldref signatures instead of their token value.
555         
556 2003-09-19 Jackson Harper <jackson@latitudegeo.com>
557
558         * dis-cil.c: Output fault blocks, and filter blocks. If in a
559         filter block outptut 0xDC as endfilter if in a fault output as
560         endfault.
561         
562 2003-08-22  Zoltan Varga  <vargaz@freemail.hu>
563
564         * main.c (dis_event_list): Same for event methods.
565
566         * get.c (dis_stringify_method_signature): New argument specifying
567         whenever to return a fully qualified method name.
568         * dump.c main.c: Updated to work with the new function.
569
570         * main.c (dis_property_methods): Print fully qualified method names 
571         for property methods. Fixes #46221.
572
573 2003-07-22 Jackson Harper <jackson@latitudegeo.com>
574
575         * main.c: Dissasemble generic type parameters for type
576         definitions. TODO: Sort type parameters by index, and
577         auto-generate names for parameters that have no name.
578         
579 Fri Jul 18 13:12:38 CEST 2003 Paolo Molaro <lupus@ximian.com>
580
581         * get.c: updates for array type representation changes.
582
583 2003-06-16 Jackson Harper <jackson@latitudegeo.com>
584
585         * get.c: Fix modopt and modreq
586                 
587 Thu May 29 12:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
588
589         * dump.c, get.c: misc fixes.
590
591 Wed May 7 16:50:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
592
593         * main.c: output custom attributes for method parameters.
594
595 Wed May 7 16:24:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
596
597         * main.c: output nested types inside their nesting class.
598
599 2003-04-12  Zoltan Varga  <vargaz@freemail.hu>
600
601         * get.c (dis_stringify_modifiers): Print a space between custom modifers.
602         * get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
603         * main.c: Print klass name at the end of each method to make it easier
604         to find a given method.
605
606 2003-03-31  Miguel de Icaza  <miguel@ximian.com>
607
608         * main.c: Sorted command line options table by name.
609
610         * dump.c: Add support for dumping the new generic tables. 
611
612         * monodis.1: Update man page.
613         
614 2003-03-09 Jackson Harper <jackson@latitudegeo.com>
615
616         * main.c: Ouput implements clause as a comma seperated list.
617
618 Thu Feb  6 02:43:23 PST 2003 Piers Haken <piersh@friskit.com>
619
620         * dump.c: more warning cleanups
621
622 Mon Jan 27 17:16:50 CET 2003 Paolo Molaro <lupus@ximian.com>
623
624         * get.c: decode also the size info in get_marshal_info()
625         for ByValStr and ByValArray.
626
627 Tue Sep 24 11:48:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
628
629         * main.c: use mono_type_size () to get the size of
630         a blob of data for a type (Zoltan Varga spotted the bug).
631
632 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
633
634         * get.c: closes bug #30814. Thanks to Zoltan Varga.
635
636 Mon Sep 16 18:49:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
637
638         * main.c, get.c, dump.c: updates for changes in libmetadata.
639
640 Fri Sep 13 15:39:41 CEST 2002 Paolo Molaro <lupus@ximian.com>
641
642         * main.c: dump public key.
643         * get.c, util.h, util.c: prettyfy data dumps.
644
645 2002-08-28  Dick Porter  <dick@ximian.com>
646
647         * Makefile.am: Export HOST_CC for w32 builds
648
649 Tue Aug 6 12:40:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
650
651         * main.c: use mono_image_get_entry_point ().
652
653 Fri Jul 26 11:41:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
654
655         * main.c, dump.h, dump.c: output hash value in File table.
656         Add dumper function for DeclSecurity table.
657
658 Fri Jul 19 14:20:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
659
660         * main.c: handle null parent.
661
662 2002-07-02  Martin Baulig  <martin@gnome.org>
663
664         * get.c (dis_stringify_object_with_class): New static function to
665         stringify an object when we already have its class.
666         (dis_stringify_object): Get the class and call dis_stringify_object().
667         (get_method): Call dis_stringify_object_with_class() since we already
668         have the object's class.
669
670 Thu Jun 20 11:50:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
671
672         * main.c, dump.c, dump.h: code to dump the MethodImpl table.
673
674 Mon Jun 17 17:31:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
675
676         * get.h, get.c: get_marshal_info() to get a marshal descriptor.
677         * main.c, dump.h, dump.c: added code to dump the FieldMarshl table.
678
679 Tue Jun 11 14:11:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
680
681         * get.c: handle modulerefs.
682         * main.c: fix --mscorlib argument handling.
683
684 Fri Jun 7 19:39:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
685
686         * get.c: handle typerefs of nested types. Don't print "."
687         with an empty namespace.
688
689 Sat Jun 1 13:57:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
690
691         * main.c: print byte values correctly.
692
693 2002-05-20  Martin Baulig  <martin@gnome.org>
694
695         * main.c: Added `--output=FILENAME' command line option.
696
697         * monodis.1: Documented it here.
698
699 Thu May 16 17:21:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
700
701         * main.c, dump,c, get.h, get.c: diassemble custom attributes.
702
703 Wed May 15 16:02:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
704
705         * main.c: output field RVA data.
706
707 Fri May 10 21:00:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
708
709         * main.c: print field offset info if needed.
710
711 Wed May 1 17:07:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
712
713         * dump.c, dump.h, main.c: dump ExportedTypes table.
714         * get.c: fix get_module (), remove magic numbers.
715         * monodis.1: update manpage (hi miguel!:)
716
717 Mon Apr 29 12:12:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
718
719         * dump.c, dump.h, main.c: support for dumping the manifest resource table.
720
721 Mon Apr 15 11:35:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
722
723         * dump.c, dump.h, get.c, get.h, main.c: support for dumping the
724         module table and guid values.
725
726 Mon Apr 8 17:15:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
727
728         * main.c: removed unneeded runtime invoke support.
729
730 Thu Mar 28 16:52:11 CET 2002 Paolo Molaro <lupus@ximian.com>
731
732         * dis-cil.c, dump.c, get.c, main.c, util.h: spring warning cleanup.
733
734 Thu Mar 28 11:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
735
736         * util.c: when an invalid flags combination is seen,
737         return the string "invalid-flags", so disassembly can continue.
738
739 Tue Mar 19 18:15:29 CET 2002 Paolo Molaro <lupus@ximian.com>
740
741         * dis-cil.c: use unsigned for variables.
742
743 Sat Mar 16 19:13:57 CET 2002 Paolo Molaro <lupus@ximian.com>
744
745         * dump.c: handle TypeSpec token in memberref table dump.
746
747 2002-03-08  Nick Drochak  <ndrochak@gol.com>
748
749         * monodis.1: Add info about new parameter
750         * main.c: Add flag to remember if user wants to us mscorlib for
751         non-corilb assembly names
752         * get.c(get_typedef): use mscorlib for assembly name only
753         if user specifies it with a command line parameter. Default
754         behavior is now to use actual assembly name.
755  
756 Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <lupus@ximian.com>
757
758         * dump.c: print index of the methodsemantics table.
759         * main.cs: print event information.
760
761 Wed Feb 20 22:10:48 CET 2002 Paolo Molaro <lupus@ximian.com>
762
763         * dump.c: fix the fix and more complete custom attribute decoder.
764
765 Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <lupus@ximian.com>
766
767         * dump.c: the prolog is before each arg in the custom attribute blob.
768
769 Mon Feb 18 15:48:38 CET 2002 Paolo Molaro <lupus@ximian.com>
770
771         * get.c: include last param.
772
773 Thu Feb 14 18:59:37 CET 2002 Paolo Molaro <lupus@ximian.com>
774
775         * main.c: output pack and size info if needed.
776
777 2002-02-13  Dietmar Maurer  <dietmar@ximian.com>
778
779         * *.c: s/MonoMetadata/MonoImage/ 
780
781 Tue Feb 12 14:33:53 CET 2002 Paolo Molaro <lupus@ximian.com>
782
783         * dump.c: make all the indexes printed starting from 1.
784
785 Fri Feb 8 19:28:31 CET 2002 Paolo Molaro <lupus@ximian.com>
786
787         * get.c: don't abort if a methodref is not found, usa alternative way
788         to get the method name.
789
790 Fri Feb 8 12:29:41 CET 2002 Paolo Molaro <lupus@ximian.com>
791
792         * Makefile.am: correct linking order.
793         * dis-cil.c: use opcode info from opcodes.h instead of a copy of the data.
794
795 Thu Jan 31 18:21:12 CET 2002 Paolo Molaro <lupus@ximian.com>
796
797         * dis-cil.c: reverse order when outputting start try blocks.
798
799 Mon Jan 14 17:00:23 CET 2002 Paolo Molaro <lupus@ximian.com>
800
801         * dump.c: more info in method table dump.
802
803 Mon Dec 24 17:24:13 CET 2001 Paolo Molaro <lupus@ximian.com>
804
805         * main.c, dump.h, dump.c: add dump_table_nestedclass().
806         * dis-cil.c: output int64 as hex.
807
808 Tue Dec 18 18:48:00 CET 2001 Paolo Molaro <lupus@ximian.com>
809
810         * main.c: use mono_metadata_methods_from_property() and
811         mono_metadata_properties_from_typedef() from metadata instead of
812         custom code.
813
814 Tue Nov 27 16:31:52 CET 2001 Paolo Molaro <lupus@ximian.com>
815
816         * main.c: output a marker for method (used in debug support).
817
818 Mon Nov 19 11:32:28 CET 2001 Paolo Molaro <lupus@ximian.com>
819
820         * main.c: remove arch_create_jit_trampoline().
821
822 Thu Nov 15 17:42:03 CET 2001 Paolo Molaro <lupus@ximian.com>
823
824         * dump.c: decode more info in the constant table.
825         * get.c: show literals the same way ildasm does.
826         * main.c: decode literal values for fields.
827
828 Fri Nov 2 19:04:21 CET 2001 Paolo Molaro <lupus@ximian.com>
829
830         * main.c, dump, dump.c: decode the customattr table.
831         * dump.c: handle also field signature when dumping the memberref
832         table.
833
834 2001-11-07  Miguel de Icaza  <miguel@ximian.com>
835
836         * main.c (dis_property_methods): Added missing colon which avoided
837         setting loc.t
838
839 2001-10-10  Dietmar Maurer  <dietmar@ximian.com>
840
841         * main.c (arch_compile_method):  added to compute vtable entry
842
843 Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
844
845         * get.c, get.h: MonoArray changed in MonoArrayType.
846         * main.c: guard against calling bsearch with a NULL pointer
847         (pointed out by Laurent Rioux, smoux).
848
849 Thu Oct 4 19:05:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
850
851         * dis-cil.c: fix printing of exception stuff.
852         * dump.c: display some more info in the typedef table dump.
853         * main.c: typo fix and method list fix.
854
855 2001-10-04  Dick Porter  <dick@ximian.com>
856
857         * meta.h: include mono-endian.h not endian.h
858
859 2001-10-02  Dietmar Maurer  <dietmar@ximian.com>
860
861         * get.c (get_method): always write namespace and class name.
862
863 2001-09-06  Miguel de Icaza  <miguel@ximian.com>
864
865         * monodis.1: Update man page.
866
867 Tue Aug 28 15:54:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
868
869         * main.c, dump.c, dump.h, get.c: added dump_table_interfaceimpl ().
870         Output info about interfaces when disassembling a type. Many small
871         changes to make the output correct assembler.
872
873 Mon Aug 27 20:13:49 CEST 2001 Paolo Molaro <lupus@ximian.com>
874
875         * dis-cil.c, get.c: some endian fixes.
876         * main.c: colon-separate version numbers. Print also namespace
877         when outputting class information.
878
879 Fri Aug 24 16:10:12 CEST 2001 Paolo Molaro <lupus@ximian.com>
880
881         * get.c, main.c, get.h: updates for MonoParam merge in MonoType.
882
883 2001-08-24  Dietmar Maurer  <dietmar@ximian.com>
884
885         * main.c (disassemble_file): use assembly_open instead of image_open
886
887 Wed Aug 22 16:22:22 CEST 2001 Paolo Molaro <lupus@ximian.com>
888
889         * dis-cil.c: add a newline after branch instructions. Move
890         end of exception handler code at the end.
891
892 Tue Aug 21 18:51:05 CEST 2001 Paolo Molaro <lupus@ximian.com>
893
894         * dis-cil.c: correctly print the label for multi-byte opcodes.
895
896 Mon Aug 20 19:33:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
897
898         * util.c: add a space when decoding multiple flags.
899         * dump.c, dump.h, main.c: decode the property map and
900         methodsemantics tables. Disassemble property information
901         to .property IL directives.
902         * get.c: allow passing a NULL as method in dis_stringify_method ()
903         if a methoddef_row is given.
904         
905 2001-08-20  Dietmar Maurer  <dietmar@ximian.com>
906
907         * get.c (dis_stringify_type): support pinned values
908
909 Sat Aug 18 11:24:07 CEST 2001 Paolo Molaro <lupus@ximian.com>
910
911         * dump.c, get.c, get.h, main.c: dis_stringify_method_signature()
912         gets an optional methodef_row index instead of a name, so it
913         can figure out also the names and attributes of params.
914         parse_method_signature() and free_method_signature() removed as
915         they are useless now.
916
917 2001-08-17  Dietmar Maurer  <dietmar@ximian.com>
918
919         * main.c (pinvoke_info): bug fix - use the right column in the table
920
921 2001-08-14  Dietmar Maurer  <dietmar@ximian.com>
922
923         * get.c (dis_stringify_type): use strconcat instead of strjoin
924
925 Sat Aug 4 12:36:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
926
927         * get.c, get.h, main.c, dump.c: implement dis_stringify_method_signature().
928         More magic constants replaced by enum values (spotted at least 3 real bugs
929         doing this). Print usage information if an unknown option is given.
930         Print the full signature when dumping the method table.
931         Changed method and field table dumps to show the typedef name the field
932         or method belongs to.
933
934 Fri Aug 3 18:30:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
935
936         * get.c (get_method): fix use of unitialized variable and
937         remove magic constants all over the place.
938
939 Wed Aug 1 22:46:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
940
941         * dis-cil.c: properly decode the switch opcode.
942         
943 2001-08-01  Dietmar Maurer  <dietmar@ximian.com>
944
945         * get.c (get_token): decode typedef and typeref tokens
946
947         * main.c (dis_method_list): don't decode the next row, that is
948         totally unnecessary
949
950 Tue Jul 31 17:48:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
951
952         * dis-cil.c, dis-cil.h, dump.c, dump.h, get.c, get.h, main.c, push-pop.h:
953         massive namespace cleanup.
954         * main.c: dis_locals() now just strigifies a MonoMethodHeader.
955
956 2001-07-31  Dietmar Maurer  <dietmar@ximian.com>
957
958         * main.c (pinvoke_flags): impl.
959
960 Mon Jul 30 20:08:37 CEST 2001 Paolo Molaro <lupus@ximian.com>
961
962         * dis-cil.c, dis-cil.h, main.c: changes to disassemble also
963         the information about try/catch/finally blocks.
964
965 2001-07-27  Dietmar Maurer  <dietmar@ximian.com>
966
967         * get.c (dis_stringify_type): return "void" if !type
968         (dis_stringify_type): print type* instead of *type
969
970 Thu Jul 26 13:22:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
971
972         * dis-cil.c, dump.c, get.c, main.c: updates to match changes in metadata.
973         Removed dead code.
974
975 2001-07-17  Miguel de Icaza  <miguel@ximian.com>
976
977         * main.c (usage): Print out all the arguments.
978
979         * get.c, main.c, dump.c: Remove `expand', `get_encoded_value',
980         `get_blob_encoded_size' and replaced with the proper functions
981         from metadata.c
982
983 2001-07-15  Miguel de Icaza  <miguel@ximian.com>
984
985         * main.c (dis_code): Only display .entrypoint when we are dealing
986         with a module that contains an entry point.  This removes a bunch
987         of warnings for .dll dumping
988
989 Sun Jul 15 17:29:10 CEST 2001 Paolo Molaro <lupus@ximian.com>
990
991         * get.h,get.c: added some dis_stringify_object() functions:
992         metadata decoding is now done in libmetadata. Still need to use
993         them throughhout the code (and move other decode code to
994         metadata). Fix also field decoding (band-aid until we load
995         also referenced assemblies).
996         * dis/main.c: start using the new routines.
997
998 2001-07-13  Miguel de Icaza  <miguel@ximian.com>
999
1000         * get.c (get_method): GOOD. Implemented this other bad boy.
1001
1002 2001-07-12  Miguel de Icaza  <miguel@ximian.com>
1003
1004         * get.c (get_token_type): Implement TOKEN_TYPE_TYPE_SPEC.
1005         (get_typespec): Implement.
1006         (get_typedef_or_ref): Use get_typespec.
1007
1008         * dis-cil.c (dissasemble_cil): Implement InlineField
1009         (dissasemble_cil): Implement InlineTok.
1010
1011         * get.c (get_token, get_field): Implemented.  Worked around lame
1012         tables in the spec.
1013
1014 Wed Jul 11 18:52:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
1015
1016         * dis-cil.c: output real name of local var.
1017         * dump.c: output more info about fields (flags and type). Properly decode
1018         Property signatures. Decode also method table.
1019         * main.c: Fix local variable info. Hopefully fix field and property list.
1020
1021 Mon Jul  9 16:39:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
1022
1023         * dump.c: write stuff to output, not stderr. Give more info for properties.
1024         * dump.c,dump.h,main.c: implement dump_table_event(), dump_table_file(),
1025         dump_table_moduleref().
1026         * get.c: first attempt to decode string constants, need to find if and where
1027         this is actually specified.
1028
1029 Fri Jul  6 19:49:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
1030
1031         * dump.c,dump.h: implement dump_table_property().
1032         * main.c: implement local variable info disassembling.
1033         Annotate entrypoint method. Remove memory leak in 
1034         parse_method_signature ().
1035
1036 2001-07-04  Miguel de Icaza  <miguel@ximian.com>
1037         
1038         * get.c (get_methodref_signature): Implement.
1039
1040         * dump.c (dump_table_memberref): Add memberref dumping.
1041
1042 Tue,  3 Jul 2001 18:32:10 +0200 Paolo Molaro <lupus@ximian.com>
1043
1044         * main.c: return on failure.
1045
1046 2001-07-02  Miguel de Icaza  <miguel@ximian.com>
1047
1048         * dis-cil.c (get_encoded_user_string): Return a string from the
1049         #US heap. o
1050
1051         * get.c (get_blob_encoded_size): Implement 23.1.4 decoding.
1052
1053 2001-07-01  Miguel de Icaza  <miguel@ximian.com>
1054
1055         * dis-cil.c: New file.  CIL opcode dissasembler.
1056
1057 2001-06-27  Miguel de Icaza  <miguel@ximian.com>
1058
1059         * main.c: Split code.
1060
1061 2001-06-22  Miguel de Icaza  <miguel@ximian.com>
1062
1063         * main.c: More work on the disassembler and on the understanding
1064         of the metadata file format.   
1065