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