* get.c/get.h: Add methods to get stringified methodspecs and
[mono.git] / mono / dis / ChangeLog
1 2003-10-09 Jackson Harper <jackson@ximian.com>
2
3         * main.c/get.c: Remove magic numbers, use constants.
4         
5 2003-10-08 Jackson Harper <jackson@ximian.com>
6
7         * main.c (dis_genericparam): renamed to
8         dis_generic_param_and_constraints, allow a table type to be passed
9         to the method so this could be used with generic methods (It is
10         not though).
11         * get.c/get.h (get_generic_param): method to stringify generic
12         type and method parameters.
13         * get.c (dis_stringify_method_signature): Add generic parameters.
14         
15 2003-10-08 Jackson Harper <jackson@ximian.com>
16
17         * main.c (dis_type): NULL cnst_block so we dont explode on
18         interfaces.
19         * main.c (dis_genericparam): oops, fix off-by-one error.
20         
21 2003-10-08 Jackson Harper <jackson@ximian.com>
22
23         * get.c/get.h add method to get a methoddef from an index, simplify
24         get_typd_or_methdef, use new get_methoddef to get the method
25         because we have a method index not a method token.
26         
27 2003-10-07 Jackson Harper <jackson@ximian.com>
28
29         * main.c: When dis. generic parameters the TypeOrMethodDef token
30         only needs to be shifted 1 bit. Added dis of generic constraints.
31         * get.c/get.h: New method for getting a TypeOrMethodDef token
32         * dump.c: When dumping generic parameters and generic constraints
33         output readable names instead of just tokens.
34         
35 2003-10-01 Jackson Harper <jackson@latitudegeo.com>
36         
37         * main.c: Fix visibility level names, when outputing pinvoke info
38         quote the module and method names, properties have specialname,
39         and rtspecialname flags (nothing else), dis global methods and
40         fields FIXME: indentation issues.
41         * get.h: declare get_fieldref_signature
42         * get.c: Fix unsigned ints (not uint), single quote argument names
43         (this is kinda a hack, ildasm will only single quote arg names
44         that are ilasm keywords), remove fixme, we know what typedbyref
45         means, output fieldref signatures instead of their token value.
46         
47 2003-09-19 Jackson Harper <jackson@latitudegeo.com>
48
49         * dis-cil.c: Output fault blocks, and filter blocks. If in a
50         filter block outptut 0xDC as endfilter if in a fault output as
51         endfault.
52         
53 2003-08-22  Zoltan Varga  <vargaz@freemail.hu>
54
55         * main.c (dis_event_list): Same for event methods.
56
57         * get.c (dis_stringify_method_signature): New argument specifying
58         whenever to return a fully qualified method name.
59         * dump.c main.c: Updated to work with the new function.
60
61         * main.c (dis_property_methods): Print fully qualified method names 
62         for property methods. Fixes #46221.
63
64 2003-07-22 Jackson Harper <jackson@latitudegeo.com>
65
66         * main.c: Dissasemble generic type parameters for type
67         definitions. TODO: Sort type parameters by index, and
68         auto-generate names for parameters that have no name.
69         
70 Fri Jul 18 13:12:38 CEST 2003 Paolo Molaro <lupus@ximian.com>
71
72         * get.c: updates for array type representation changes.
73
74 2003-06-16 Jackson Harper <jackson@latitudegeo.com>
75
76         * get.c: Fix modopt and modreq
77                 
78 Thu May 29 12:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
79
80         * dump.c, get.c: misc fixes.
81
82 Wed May 7 16:50:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
83
84         * main.c: output custom attributes for method parameters.
85
86 Wed May 7 16:24:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
87
88         * main.c: output nested types inside their nesting class.
89
90 2003-04-12  Zoltan Varga  <vargaz@freemail.hu>
91
92         * get.c (dis_stringify_modifiers): Print a space between custom modifers.
93         * get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
94         * main.c: Print klass name at the end of each method to make it easier
95         to find a given method.
96
97 2003-03-31  Miguel de Icaza  <miguel@ximian.com>
98
99         * main.c: Sorted command line options table by name.
100
101         * dump.c: Add support for dumping the new generic tables. 
102
103         * monodis.1: Update man page.
104         
105 2003-03-09 Jackson Harper <jackson@latitudegeo.com>
106
107         * main.c: Ouput implements clause as a comma seperated list.
108
109 Thu Feb  6 02:43:23 PST 2003 Piers Haken <piersh@friskit.com>
110
111         * dump.c: more warning cleanups
112
113 Mon Jan 27 17:16:50 CET 2003 Paolo Molaro <lupus@ximian.com>
114
115         * get.c: decode also the size info in get_marshal_info()
116         for ByValStr and ByValArray.
117
118 Tue Sep 24 11:48:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
119
120         * main.c: use mono_type_size () to get the size of
121         a blob of data for a type (Zoltan Varga spotted the bug).
122
123 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
124
125         * get.c: closes bug #30814. Thanks to Zoltan Varga.
126
127 Mon Sep 16 18:49:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
128
129         * main.c, get.c, dump.c: updates for changes in libmetadata.
130
131 Fri Sep 13 15:39:41 CEST 2002 Paolo Molaro <lupus@ximian.com>
132
133         * main.c: dump public key.
134         * get.c, util.h, util.c: prettyfy data dumps.
135
136 2002-08-28  Dick Porter  <dick@ximian.com>
137
138         * Makefile.am: Export HOST_CC for w32 builds
139
140 Tue Aug 6 12:40:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
141
142         * main.c: use mono_image_get_entry_point ().
143
144 Fri Jul 26 11:41:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
145
146         * main.c, dump.h, dump.c: output hash value in File table.
147         Add dumper function for DeclSecurity table.
148
149 Fri Jul 19 14:20:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
150
151         * main.c: handle null parent.
152
153 2002-07-02  Martin Baulig  <martin@gnome.org>
154
155         * get.c (dis_stringify_object_with_class): New static function to
156         stringify an object when we already have its class.
157         (dis_stringify_object): Get the class and call dis_stringify_object().
158         (get_method): Call dis_stringify_object_with_class() since we already
159         have the object's class.
160
161 Thu Jun 20 11:50:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
162
163         * main.c, dump.c, dump.h: code to dump the MethodImpl table.
164
165 Mon Jun 17 17:31:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
166
167         * get.h, get.c: get_marshal_info() to get a marshal descriptor.
168         * main.c, dump.h, dump.c: added code to dump the FieldMarshl table.
169
170 Tue Jun 11 14:11:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
171
172         * get.c: handle modulerefs.
173         * main.c: fix --mscorlib argument handling.
174
175 Fri Jun 7 19:39:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
176
177         * get.c: handle typerefs of nested types. Don't print "."
178         with an empty namespace.
179
180 Sat Jun 1 13:57:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
181
182         * main.c: print byte values correctly.
183
184 2002-05-20  Martin Baulig  <martin@gnome.org>
185
186         * main.c: Added `--output=FILENAME' command line option.
187
188         * monodis.1: Documented it here.
189
190 Thu May 16 17:21:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
191
192         * main.c, dump,c, get.h, get.c: diassemble custom attributes.
193
194 Wed May 15 16:02:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
195
196         * main.c: output field RVA data.
197
198 Fri May 10 21:00:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
199
200         * main.c: print field offset info if needed.
201
202 Wed May 1 17:07:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
203
204         * dump.c, dump.h, main.c: dump ExportedTypes table.
205         * get.c: fix get_module (), remove magic numbers.
206         * monodis.1: update manpage (hi miguel!:)
207
208 Mon Apr 29 12:12:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
209
210         * dump.c, dump.h, main.c: support for dumping the manifest resource table.
211
212 Mon Apr 15 11:35:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
213
214         * dump.c, dump.h, get.c, get.h, main.c: support for dumping the
215         module table and guid values.
216
217 Mon Apr 8 17:15:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
218
219         * main.c: removed unneeded runtime invoke support.
220
221 Thu Mar 28 16:52:11 CET 2002 Paolo Molaro <lupus@ximian.com>
222
223         * dis-cil.c, dump.c, get.c, main.c, util.h: spring warning cleanup.
224
225 Thu Mar 28 11:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
226
227         * util.c: when an invalid flags combination is seen,
228         return the string "invalid-flags", so disassembly can continue.
229
230 Tue Mar 19 18:15:29 CET 2002 Paolo Molaro <lupus@ximian.com>
231
232         * dis-cil.c: use unsigned for variables.
233
234 Sat Mar 16 19:13:57 CET 2002 Paolo Molaro <lupus@ximian.com>
235
236         * dump.c: handle TypeSpec token in memberref table dump.
237
238 2002-03-08  Nick Drochak  <ndrochak@gol.com>
239
240         * monodis.1: Add info about new parameter
241         * main.c: Add flag to remember if user wants to us mscorlib for
242         non-corilb assembly names
243         * get.c(get_typedef): use mscorlib for assembly name only
244         if user specifies it with a command line parameter. Default
245         behavior is now to use actual assembly name.
246  
247 Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <lupus@ximian.com>
248
249         * dump.c: print index of the methodsemantics table.
250         * main.cs: print event information.
251
252 Wed Feb 20 22:10:48 CET 2002 Paolo Molaro <lupus@ximian.com>
253
254         * dump.c: fix the fix and more complete custom attribute decoder.
255
256 Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <lupus@ximian.com>
257
258         * dump.c: the prolog is before each arg in the custom attribute blob.
259
260 Mon Feb 18 15:48:38 CET 2002 Paolo Molaro <lupus@ximian.com>
261
262         * get.c: include last param.
263
264 Thu Feb 14 18:59:37 CET 2002 Paolo Molaro <lupus@ximian.com>
265
266         * main.c: output pack and size info if needed.
267
268 2002-02-13  Dietmar Maurer  <dietmar@ximian.com>
269
270         * *.c: s/MonoMetadata/MonoImage/ 
271
272 Tue Feb 12 14:33:53 CET 2002 Paolo Molaro <lupus@ximian.com>
273
274         * dump.c: make all the indexes printed starting from 1.
275
276 Fri Feb 8 19:28:31 CET 2002 Paolo Molaro <lupus@ximian.com>
277
278         * get.c: don't abort if a methodref is not found, usa alternative way
279         to get the method name.
280
281 Fri Feb 8 12:29:41 CET 2002 Paolo Molaro <lupus@ximian.com>
282
283         * Makefile.am: correct linking order.
284         * dis-cil.c: use opcode info from opcodes.h instead of a copy of the data.
285
286 Thu Jan 31 18:21:12 CET 2002 Paolo Molaro <lupus@ximian.com>
287
288         * dis-cil.c: reverse order when outputting start try blocks.
289
290 Mon Jan 14 17:00:23 CET 2002 Paolo Molaro <lupus@ximian.com>
291
292         * dump.c: more info in method table dump.
293
294 Mon Dec 24 17:24:13 CET 2001 Paolo Molaro <lupus@ximian.com>
295
296         * main.c, dump.h, dump.c: add dump_table_nestedclass().
297         * dis-cil.c: output int64 as hex.
298
299 Tue Dec 18 18:48:00 CET 2001 Paolo Molaro <lupus@ximian.com>
300
301         * main.c: use mono_metadata_methods_from_property() and
302         mono_metadata_properties_from_typedef() from metadata instead of
303         custom code.
304
305 Tue Nov 27 16:31:52 CET 2001 Paolo Molaro <lupus@ximian.com>
306
307         * main.c: output a marker for method (used in debug support).
308
309 Mon Nov 19 11:32:28 CET 2001 Paolo Molaro <lupus@ximian.com>
310
311         * main.c: remove arch_create_jit_trampoline().
312
313 Thu Nov 15 17:42:03 CET 2001 Paolo Molaro <lupus@ximian.com>
314
315         * dump.c: decode more info in the constant table.
316         * get.c: show literals the same way ildasm does.
317         * main.c: decode literal values for fields.
318
319 Fri Nov 2 19:04:21 CET 2001 Paolo Molaro <lupus@ximian.com>
320
321         * main.c, dump, dump.c: decode the customattr table.
322         * dump.c: handle also field signature when dumping the memberref
323         table.
324
325 2001-11-07  Miguel de Icaza  <miguel@ximian.com>
326
327         * main.c (dis_property_methods): Added missing colon which avoided
328         setting loc.t
329
330 2001-10-10  Dietmar Maurer  <dietmar@ximian.com>
331
332         * main.c (arch_compile_method):  added to compute vtable entry
333
334 Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
335
336         * get.c, get.h: MonoArray changed in MonoArrayType.
337         * main.c: guard against calling bsearch with a NULL pointer
338         (pointed out by Laurent Rioux, smoux).
339
340 Thu Oct 4 19:05:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
341
342         * dis-cil.c: fix printing of exception stuff.
343         * dump.c: display some more info in the typedef table dump.
344         * main.c: typo fix and method list fix.
345
346 2001-10-04  Dick Porter  <dick@ximian.com>
347
348         * meta.h: include mono-endian.h not endian.h
349
350 2001-10-02  Dietmar Maurer  <dietmar@ximian.com>
351
352         * get.c (get_method): always write namespace and class name.
353
354 2001-09-06  Miguel de Icaza  <miguel@ximian.com>
355
356         * monodis.1: Update man page.
357
358 Tue Aug 28 15:54:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
359
360         * main.c, dump.c, dump.h, get.c: added dump_table_interfaceimpl ().
361         Output info about interfaces when disassembling a type. Many small
362         changes to make the output correct assembler.
363
364 Mon Aug 27 20:13:49 CEST 2001 Paolo Molaro <lupus@ximian.com>
365
366         * dis-cil.c, get.c: some endian fixes.
367         * main.c: colon-separate version numbers. Print also namespace
368         when outputting class information.
369
370 Fri Aug 24 16:10:12 CEST 2001 Paolo Molaro <lupus@ximian.com>
371
372         * get.c, main.c, get.h: updates for MonoParam merge in MonoType.
373
374 2001-08-24  Dietmar Maurer  <dietmar@ximian.com>
375
376         * main.c (disassemble_file): use assembly_open instead of image_open
377
378 Wed Aug 22 16:22:22 CEST 2001 Paolo Molaro <lupus@ximian.com>
379
380         * dis-cil.c: add a newline after branch instructions. Move
381         end of exception handler code at the end.
382
383 Tue Aug 21 18:51:05 CEST 2001 Paolo Molaro <lupus@ximian.com>
384
385         * dis-cil.c: correctly print the label for multi-byte opcodes.
386
387 Mon Aug 20 19:33:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
388
389         * util.c: add a space when decoding multiple flags.
390         * dump.c, dump.h, main.c: decode the property map and
391         methodsemantics tables. Disassemble property information
392         to .property IL directives.
393         * get.c: allow passing a NULL as method in dis_stringify_method ()
394         if a methoddef_row is given.
395         
396 2001-08-20  Dietmar Maurer  <dietmar@ximian.com>
397
398         * get.c (dis_stringify_type): support pinned values
399
400 Sat Aug 18 11:24:07 CEST 2001 Paolo Molaro <lupus@ximian.com>
401
402         * dump.c, get.c, get.h, main.c: dis_stringify_method_signature()
403         gets an optional methodef_row index instead of a name, so it
404         can figure out also the names and attributes of params.
405         parse_method_signature() and free_method_signature() removed as
406         they are useless now.
407
408 2001-08-17  Dietmar Maurer  <dietmar@ximian.com>
409
410         * main.c (pinvoke_info): bug fix - use the right column in the table
411
412 2001-08-14  Dietmar Maurer  <dietmar@ximian.com>
413
414         * get.c (dis_stringify_type): use strconcat instead of strjoin
415
416 Sat Aug 4 12:36:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
417
418         * get.c, get.h, main.c, dump.c: implement dis_stringify_method_signature().
419         More magic constants replaced by enum values (spotted at least 3 real bugs
420         doing this). Print usage information if an unknown option is given.
421         Print the full signature when dumping the method table.
422         Changed method and field table dumps to show the typedef name the field
423         or method belongs to.
424
425 Fri Aug 3 18:30:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
426
427         * get.c (get_method): fix use of unitialized variable and
428         remove magic constants all over the place.
429
430 Wed Aug 1 22:46:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
431
432         * dis-cil.c: properly decode the switch opcode.
433         
434 2001-08-01  Dietmar Maurer  <dietmar@ximian.com>
435
436         * get.c (get_token): decode typedef and typeref tokens
437
438         * main.c (dis_method_list): don't decode the next row, that is
439         totally unnecessary
440
441 Tue Jul 31 17:48:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
442
443         * dis-cil.c, dis-cil.h, dump.c, dump.h, get.c, get.h, main.c, push-pop.h:
444         massive namespace cleanup.
445         * main.c: dis_locals() now just strigifies a MonoMethodHeader.
446
447 2001-07-31  Dietmar Maurer  <dietmar@ximian.com>
448
449         * main.c (pinvoke_flags): impl.
450
451 Mon Jul 30 20:08:37 CEST 2001 Paolo Molaro <lupus@ximian.com>
452
453         * dis-cil.c, dis-cil.h, main.c: changes to disassemble also
454         the information about try/catch/finally blocks.
455
456 2001-07-27  Dietmar Maurer  <dietmar@ximian.com>
457
458         * get.c (dis_stringify_type): return "void" if !type
459         (dis_stringify_type): print type* instead of *type
460
461 Thu Jul 26 13:22:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
462
463         * dis-cil.c, dump.c, get.c, main.c: updates to match changes in metadata.
464         Removed dead code.
465
466 2001-07-17  Miguel de Icaza  <miguel@ximian.com>
467
468         * main.c (usage): Print out all the arguments.
469
470         * get.c, main.c, dump.c: Remove `expand', `get_encoded_value',
471         `get_blob_encoded_size' and replaced with the proper functions
472         from metadata.c
473
474 2001-07-15  Miguel de Icaza  <miguel@ximian.com>
475
476         * main.c (dis_code): Only display .entrypoint when we are dealing
477         with a module that contains an entry point.  This removes a bunch
478         of warnings for .dll dumping
479
480 Sun Jul 15 17:29:10 CEST 2001 Paolo Molaro <lupus@ximian.com>
481
482         * get.h,get.c: added some dis_stringify_object() functions:
483         metadata decoding is now done in libmetadata. Still need to use
484         them throughhout the code (and move other decode code to
485         metadata). Fix also field decoding (band-aid until we load
486         also referenced assemblies).
487         * dis/main.c: start using the new routines.
488
489 2001-07-13  Miguel de Icaza  <miguel@ximian.com>
490
491         * get.c (get_method): GOOD. Implemented this other bad boy.
492
493 2001-07-12  Miguel de Icaza  <miguel@ximian.com>
494
495         * get.c (get_token_type): Implement TOKEN_TYPE_TYPE_SPEC.
496         (get_typespec): Implement.
497         (get_typedef_or_ref): Use get_typespec.
498
499         * dis-cil.c (dissasemble_cil): Implement InlineField
500         (dissasemble_cil): Implement InlineTok.
501
502         * get.c (get_token, get_field): Implemented.  Worked around lame
503         tables in the spec.
504
505 Wed Jul 11 18:52:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
506
507         * dis-cil.c: output real name of local var.
508         * dump.c: output more info about fields (flags and type). Properly decode
509         Property signatures. Decode also method table.
510         * main.c: Fix local variable info. Hopefully fix field and property list.
511
512 Mon Jul  9 16:39:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
513
514         * dump.c: write stuff to output, not stderr. Give more info for properties.
515         * dump.c,dump.h,main.c: implement dump_table_event(), dump_table_file(),
516         dump_table_moduleref().
517         * get.c: first attempt to decode string constants, need to find if and where
518         this is actually specified.
519
520 Fri Jul  6 19:49:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
521
522         * dump.c,dump.h: implement dump_table_property().
523         * main.c: implement local variable info disassembling.
524         Annotate entrypoint method. Remove memory leak in 
525         parse_method_signature ().
526
527 2001-07-04  Miguel de Icaza  <miguel@ximian.com>
528         
529         * get.c (get_methodref_signature): Implement.
530
531         * dump.c (dump_table_memberref): Add memberref dumping.
532
533 Tue,  3 Jul 2001 18:32:10 +0200 Paolo Molaro <lupus@ximian.com>
534
535         * main.c: return on failure.
536
537 2001-07-02  Miguel de Icaza  <miguel@ximian.com>
538
539         * dis-cil.c (get_encoded_user_string): Return a string from the
540         #US heap. o
541
542         * get.c (get_blob_encoded_size): Implement 23.1.4 decoding.
543
544 2001-07-01  Miguel de Icaza  <miguel@ximian.com>
545
546         * dis-cil.c: New file.  CIL opcode dissasembler.
547
548 2001-06-27  Miguel de Icaza  <miguel@ximian.com>
549
550         * main.c: Split code.
551
552 2001-06-22  Miguel de Icaza  <miguel@ximian.com>
553
554         * main.c: More work on the disassembler and on the understanding
555         of the metadata file format.   
556