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