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