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