2 Thu Nov 13 16:12:09 CET 2003 Paolo Molaro <lupus@ximian.com>
4 * util.h, dump.c: get rid of ugly CSIZE macro.
6 2003-11-01 Zoltan Varga <vargaz@freemail.hu>
8 * main.c: Add disassembly of module, moduleref and file tables.
10 * get.h get.c: Add support for modulerefs.
12 * dump.c: Avoid crash on empty assembly table.
14 2003-10-22 Jackson Harper <jackson@ximian.com>
16 * main.c: Use escaped names for method, and type names. Initialize
18 * main.c (visibility_map): Fix typo, should be nested family not
20 * main.c (dis_data): Use uppercase hex to avoid name conflicts.
21 * get.c/get.h: New method to get an escaped name. This method will
22 take a name and escape it if it is an ilasm keyword, or uses a non
23 id char. Use escaped names for type, method, field, and parameter names.
24 * get.c (get_typespec): A typespec can be used for anything, so we
25 need to handle all types not just modified types.
26 * get.c (dis_stringify_object_with_class): Handle nested classes
27 * get.c (get_token): Add field keyword to field tokens.
29 2003-10-21 Jackson Harper <jackson@ximian.com>
31 * get.c (get_fieldref_signature): Use MONO_MEMBERREF_SIGNATURE in
34 2003-10-21 Martin Baulig <martin@ximian.com>
36 * get.c (get_typespec): Add MONO_TYPE_VAR and MONO_TYPE_MVAR.
38 2003-10-18 Jackson Harper <jackson@ximian.com>
40 * dis-cil.c (get_encoded_user_string): use g_strescape instead of
42 * util.c (hex_dump): Use uppercase hex so there are no conflicts
43 with ilasm keywords ie cf
45 2003-10-17 Jackson Harper <jackson@ximian.com>
47 * dis-cil.c (get_encoded_user_string): Escape user strings when
48 loading. ie ""quote"" should be "\"quote\"".
49 * dis-cil.c (dissasemble_cil): Write SEH debug info into a comment
50 block. Combine SEH blocks that have the same offset and length,
51 this prevents creating invalid SEH blocks.
53 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
55 * get.c (get_ret_type): Remove needless warning message.
57 2003-10-13 Jackson Harper <jackson@ximian.com>
59 * get.c: stringify nested types properly ie Outer/Inner.
61 2003-10-10 Jackson Harper <jackson@ximian.com>
63 * dump.c: When dumping methodspecs dump the full methodspec with
64 signature, and dump the signature.
66 2003-10-10 Jackson Harper <jackson@ximian.com>
68 * get.c/get.h: Add methods to get stringified methodspecs and
69 method type parameters.
71 2003-10-09 Jackson Harper <jackson@ximian.com>
73 * main.c/get.c: Remove magic numbers, use constants.
75 2003-10-08 Jackson Harper <jackson@ximian.com>
77 * main.c (dis_genericparam): renamed to
78 dis_generic_param_and_constraints, allow a table type to be passed
79 to the method so this could be used with generic methods (It is
81 * get.c/get.h (get_generic_param): method to stringify generic
82 type and method parameters.
83 * get.c (dis_stringify_method_signature): Add generic parameters.
85 2003-10-08 Jackson Harper <jackson@ximian.com>
87 * main.c (dis_type): NULL cnst_block so we dont explode on
89 * main.c (dis_genericparam): oops, fix off-by-one error.
91 2003-10-08 Jackson Harper <jackson@ximian.com>
93 * get.c/get.h add method to get a methoddef from an index, simplify
94 get_typd_or_methdef, use new get_methoddef to get the method
95 because we have a method index not a method token.
97 2003-10-07 Jackson Harper <jackson@ximian.com>
99 * main.c: When dis. generic parameters the TypeOrMethodDef token
100 only needs to be shifted 1 bit. Added dis of generic constraints.
101 * get.c/get.h: New method for getting a TypeOrMethodDef token
102 * dump.c: When dumping generic parameters and generic constraints
103 output readable names instead of just tokens.
105 2003-10-01 Jackson Harper <jackson@latitudegeo.com>
107 * main.c: Fix visibility level names, when outputing pinvoke info
108 quote the module and method names, properties have specialname,
109 and rtspecialname flags (nothing else), dis global methods and
110 fields FIXME: indentation issues.
111 * get.h: declare get_fieldref_signature
112 * get.c: Fix unsigned ints (not uint), single quote argument names
113 (this is kinda a hack, ildasm will only single quote arg names
114 that are ilasm keywords), remove fixme, we know what typedbyref
115 means, output fieldref signatures instead of their token value.
117 2003-09-19 Jackson Harper <jackson@latitudegeo.com>
119 * dis-cil.c: Output fault blocks, and filter blocks. If in a
120 filter block outptut 0xDC as endfilter if in a fault output as
123 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
125 * main.c (dis_event_list): Same for event methods.
127 * get.c (dis_stringify_method_signature): New argument specifying
128 whenever to return a fully qualified method name.
129 * dump.c main.c: Updated to work with the new function.
131 * main.c (dis_property_methods): Print fully qualified method names
132 for property methods. Fixes #46221.
134 2003-07-22 Jackson Harper <jackson@latitudegeo.com>
136 * main.c: Dissasemble generic type parameters for type
137 definitions. TODO: Sort type parameters by index, and
138 auto-generate names for parameters that have no name.
140 Fri Jul 18 13:12:38 CEST 2003 Paolo Molaro <lupus@ximian.com>
142 * get.c: updates for array type representation changes.
144 2003-06-16 Jackson Harper <jackson@latitudegeo.com>
146 * get.c: Fix modopt and modreq
148 Thu May 29 12:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
150 * dump.c, get.c: misc fixes.
152 Wed May 7 16:50:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
154 * main.c: output custom attributes for method parameters.
156 Wed May 7 16:24:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
158 * main.c: output nested types inside their nesting class.
160 2003-04-12 Zoltan Varga <vargaz@freemail.hu>
162 * get.c (dis_stringify_modifiers): Print a space between custom modifers.
163 * get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
164 * main.c: Print klass name at the end of each method to make it easier
165 to find a given method.
167 2003-03-31 Miguel de Icaza <miguel@ximian.com>
169 * main.c: Sorted command line options table by name.
171 * dump.c: Add support for dumping the new generic tables.
173 * monodis.1: Update man page.
175 2003-03-09 Jackson Harper <jackson@latitudegeo.com>
177 * main.c: Ouput implements clause as a comma seperated list.
179 Thu Feb 6 02:43:23 PST 2003 Piers Haken <piersh@friskit.com>
181 * dump.c: more warning cleanups
183 Mon Jan 27 17:16:50 CET 2003 Paolo Molaro <lupus@ximian.com>
185 * get.c: decode also the size info in get_marshal_info()
186 for ByValStr and ByValArray.
188 Tue Sep 24 11:48:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
190 * main.c: use mono_type_size () to get the size of
191 a blob of data for a type (Zoltan Varga spotted the bug).
193 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
195 * get.c: closes bug #30814. Thanks to Zoltan Varga.
197 Mon Sep 16 18:49:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
199 * main.c, get.c, dump.c: updates for changes in libmetadata.
201 Fri Sep 13 15:39:41 CEST 2002 Paolo Molaro <lupus@ximian.com>
203 * main.c: dump public key.
204 * get.c, util.h, util.c: prettyfy data dumps.
206 2002-08-28 Dick Porter <dick@ximian.com>
208 * Makefile.am: Export HOST_CC for w32 builds
210 Tue Aug 6 12:40:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
212 * main.c: use mono_image_get_entry_point ().
214 Fri Jul 26 11:41:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
216 * main.c, dump.h, dump.c: output hash value in File table.
217 Add dumper function for DeclSecurity table.
219 Fri Jul 19 14:20:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
221 * main.c: handle null parent.
223 2002-07-02 Martin Baulig <martin@gnome.org>
225 * get.c (dis_stringify_object_with_class): New static function to
226 stringify an object when we already have its class.
227 (dis_stringify_object): Get the class and call dis_stringify_object().
228 (get_method): Call dis_stringify_object_with_class() since we already
229 have the object's class.
231 Thu Jun 20 11:50:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
233 * main.c, dump.c, dump.h: code to dump the MethodImpl table.
235 Mon Jun 17 17:31:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
237 * get.h, get.c: get_marshal_info() to get a marshal descriptor.
238 * main.c, dump.h, dump.c: added code to dump the FieldMarshl table.
240 Tue Jun 11 14:11:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
242 * get.c: handle modulerefs.
243 * main.c: fix --mscorlib argument handling.
245 Fri Jun 7 19:39:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
247 * get.c: handle typerefs of nested types. Don't print "."
248 with an empty namespace.
250 Sat Jun 1 13:57:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
252 * main.c: print byte values correctly.
254 2002-05-20 Martin Baulig <martin@gnome.org>
256 * main.c: Added `--output=FILENAME' command line option.
258 * monodis.1: Documented it here.
260 Thu May 16 17:21:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
262 * main.c, dump,c, get.h, get.c: diassemble custom attributes.
264 Wed May 15 16:02:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
266 * main.c: output field RVA data.
268 Fri May 10 21:00:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
270 * main.c: print field offset info if needed.
272 Wed May 1 17:07:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
274 * dump.c, dump.h, main.c: dump ExportedTypes table.
275 * get.c: fix get_module (), remove magic numbers.
276 * monodis.1: update manpage (hi miguel!:)
278 Mon Apr 29 12:12:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
280 * dump.c, dump.h, main.c: support for dumping the manifest resource table.
282 Mon Apr 15 11:35:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
284 * dump.c, dump.h, get.c, get.h, main.c: support for dumping the
285 module table and guid values.
287 Mon Apr 8 17:15:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
289 * main.c: removed unneeded runtime invoke support.
291 Thu Mar 28 16:52:11 CET 2002 Paolo Molaro <lupus@ximian.com>
293 * dis-cil.c, dump.c, get.c, main.c, util.h: spring warning cleanup.
295 Thu Mar 28 11:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
297 * util.c: when an invalid flags combination is seen,
298 return the string "invalid-flags", so disassembly can continue.
300 Tue Mar 19 18:15:29 CET 2002 Paolo Molaro <lupus@ximian.com>
302 * dis-cil.c: use unsigned for variables.
304 Sat Mar 16 19:13:57 CET 2002 Paolo Molaro <lupus@ximian.com>
306 * dump.c: handle TypeSpec token in memberref table dump.
308 2002-03-08 Nick Drochak <ndrochak@gol.com>
310 * monodis.1: Add info about new parameter
311 * main.c: Add flag to remember if user wants to us mscorlib for
312 non-corilb assembly names
313 * get.c(get_typedef): use mscorlib for assembly name only
314 if user specifies it with a command line parameter. Default
315 behavior is now to use actual assembly name.
317 Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <lupus@ximian.com>
319 * dump.c: print index of the methodsemantics table.
320 * main.cs: print event information.
322 Wed Feb 20 22:10:48 CET 2002 Paolo Molaro <lupus@ximian.com>
324 * dump.c: fix the fix and more complete custom attribute decoder.
326 Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <lupus@ximian.com>
328 * dump.c: the prolog is before each arg in the custom attribute blob.
330 Mon Feb 18 15:48:38 CET 2002 Paolo Molaro <lupus@ximian.com>
332 * get.c: include last param.
334 Thu Feb 14 18:59:37 CET 2002 Paolo Molaro <lupus@ximian.com>
336 * main.c: output pack and size info if needed.
338 2002-02-13 Dietmar Maurer <dietmar@ximian.com>
340 * *.c: s/MonoMetadata/MonoImage/
342 Tue Feb 12 14:33:53 CET 2002 Paolo Molaro <lupus@ximian.com>
344 * dump.c: make all the indexes printed starting from 1.
346 Fri Feb 8 19:28:31 CET 2002 Paolo Molaro <lupus@ximian.com>
348 * get.c: don't abort if a methodref is not found, usa alternative way
349 to get the method name.
351 Fri Feb 8 12:29:41 CET 2002 Paolo Molaro <lupus@ximian.com>
353 * Makefile.am: correct linking order.
354 * dis-cil.c: use opcode info from opcodes.h instead of a copy of the data.
356 Thu Jan 31 18:21:12 CET 2002 Paolo Molaro <lupus@ximian.com>
358 * dis-cil.c: reverse order when outputting start try blocks.
360 Mon Jan 14 17:00:23 CET 2002 Paolo Molaro <lupus@ximian.com>
362 * dump.c: more info in method table dump.
364 Mon Dec 24 17:24:13 CET 2001 Paolo Molaro <lupus@ximian.com>
366 * main.c, dump.h, dump.c: add dump_table_nestedclass().
367 * dis-cil.c: output int64 as hex.
369 Tue Dec 18 18:48:00 CET 2001 Paolo Molaro <lupus@ximian.com>
371 * main.c: use mono_metadata_methods_from_property() and
372 mono_metadata_properties_from_typedef() from metadata instead of
375 Tue Nov 27 16:31:52 CET 2001 Paolo Molaro <lupus@ximian.com>
377 * main.c: output a marker for method (used in debug support).
379 Mon Nov 19 11:32:28 CET 2001 Paolo Molaro <lupus@ximian.com>
381 * main.c: remove arch_create_jit_trampoline().
383 Thu Nov 15 17:42:03 CET 2001 Paolo Molaro <lupus@ximian.com>
385 * dump.c: decode more info in the constant table.
386 * get.c: show literals the same way ildasm does.
387 * main.c: decode literal values for fields.
389 Fri Nov 2 19:04:21 CET 2001 Paolo Molaro <lupus@ximian.com>
391 * main.c, dump, dump.c: decode the customattr table.
392 * dump.c: handle also field signature when dumping the memberref
395 2001-11-07 Miguel de Icaza <miguel@ximian.com>
397 * main.c (dis_property_methods): Added missing colon which avoided
400 2001-10-10 Dietmar Maurer <dietmar@ximian.com>
402 * main.c (arch_compile_method): added to compute vtable entry
404 Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
406 * get.c, get.h: MonoArray changed in MonoArrayType.
407 * main.c: guard against calling bsearch with a NULL pointer
408 (pointed out by Laurent Rioux, smoux).
410 Thu Oct 4 19:05:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
412 * dis-cil.c: fix printing of exception stuff.
413 * dump.c: display some more info in the typedef table dump.
414 * main.c: typo fix and method list fix.
416 2001-10-04 Dick Porter <dick@ximian.com>
418 * meta.h: include mono-endian.h not endian.h
420 2001-10-02 Dietmar Maurer <dietmar@ximian.com>
422 * get.c (get_method): always write namespace and class name.
424 2001-09-06 Miguel de Icaza <miguel@ximian.com>
426 * monodis.1: Update man page.
428 Tue Aug 28 15:54:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
430 * main.c, dump.c, dump.h, get.c: added dump_table_interfaceimpl ().
431 Output info about interfaces when disassembling a type. Many small
432 changes to make the output correct assembler.
434 Mon Aug 27 20:13:49 CEST 2001 Paolo Molaro <lupus@ximian.com>
436 * dis-cil.c, get.c: some endian fixes.
437 * main.c: colon-separate version numbers. Print also namespace
438 when outputting class information.
440 Fri Aug 24 16:10:12 CEST 2001 Paolo Molaro <lupus@ximian.com>
442 * get.c, main.c, get.h: updates for MonoParam merge in MonoType.
444 2001-08-24 Dietmar Maurer <dietmar@ximian.com>
446 * main.c (disassemble_file): use assembly_open instead of image_open
448 Wed Aug 22 16:22:22 CEST 2001 Paolo Molaro <lupus@ximian.com>
450 * dis-cil.c: add a newline after branch instructions. Move
451 end of exception handler code at the end.
453 Tue Aug 21 18:51:05 CEST 2001 Paolo Molaro <lupus@ximian.com>
455 * dis-cil.c: correctly print the label for multi-byte opcodes.
457 Mon Aug 20 19:33:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
459 * util.c: add a space when decoding multiple flags.
460 * dump.c, dump.h, main.c: decode the property map and
461 methodsemantics tables. Disassemble property information
462 to .property IL directives.
463 * get.c: allow passing a NULL as method in dis_stringify_method ()
464 if a methoddef_row is given.
466 2001-08-20 Dietmar Maurer <dietmar@ximian.com>
468 * get.c (dis_stringify_type): support pinned values
470 Sat Aug 18 11:24:07 CEST 2001 Paolo Molaro <lupus@ximian.com>
472 * dump.c, get.c, get.h, main.c: dis_stringify_method_signature()
473 gets an optional methodef_row index instead of a name, so it
474 can figure out also the names and attributes of params.
475 parse_method_signature() and free_method_signature() removed as
476 they are useless now.
478 2001-08-17 Dietmar Maurer <dietmar@ximian.com>
480 * main.c (pinvoke_info): bug fix - use the right column in the table
482 2001-08-14 Dietmar Maurer <dietmar@ximian.com>
484 * get.c (dis_stringify_type): use strconcat instead of strjoin
486 Sat Aug 4 12:36:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
488 * get.c, get.h, main.c, dump.c: implement dis_stringify_method_signature().
489 More magic constants replaced by enum values (spotted at least 3 real bugs
490 doing this). Print usage information if an unknown option is given.
491 Print the full signature when dumping the method table.
492 Changed method and field table dumps to show the typedef name the field
493 or method belongs to.
495 Fri Aug 3 18:30:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
497 * get.c (get_method): fix use of unitialized variable and
498 remove magic constants all over the place.
500 Wed Aug 1 22:46:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
502 * dis-cil.c: properly decode the switch opcode.
504 2001-08-01 Dietmar Maurer <dietmar@ximian.com>
506 * get.c (get_token): decode typedef and typeref tokens
508 * main.c (dis_method_list): don't decode the next row, that is
511 Tue Jul 31 17:48:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
513 * dis-cil.c, dis-cil.h, dump.c, dump.h, get.c, get.h, main.c, push-pop.h:
514 massive namespace cleanup.
515 * main.c: dis_locals() now just strigifies a MonoMethodHeader.
517 2001-07-31 Dietmar Maurer <dietmar@ximian.com>
519 * main.c (pinvoke_flags): impl.
521 Mon Jul 30 20:08:37 CEST 2001 Paolo Molaro <lupus@ximian.com>
523 * dis-cil.c, dis-cil.h, main.c: changes to disassemble also
524 the information about try/catch/finally blocks.
526 2001-07-27 Dietmar Maurer <dietmar@ximian.com>
528 * get.c (dis_stringify_type): return "void" if !type
529 (dis_stringify_type): print type* instead of *type
531 Thu Jul 26 13:22:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
533 * dis-cil.c, dump.c, get.c, main.c: updates to match changes in metadata.
536 2001-07-17 Miguel de Icaza <miguel@ximian.com>
538 * main.c (usage): Print out all the arguments.
540 * get.c, main.c, dump.c: Remove `expand', `get_encoded_value',
541 `get_blob_encoded_size' and replaced with the proper functions
544 2001-07-15 Miguel de Icaza <miguel@ximian.com>
546 * main.c (dis_code): Only display .entrypoint when we are dealing
547 with a module that contains an entry point. This removes a bunch
548 of warnings for .dll dumping
550 Sun Jul 15 17:29:10 CEST 2001 Paolo Molaro <lupus@ximian.com>
552 * get.h,get.c: added some dis_stringify_object() functions:
553 metadata decoding is now done in libmetadata. Still need to use
554 them throughhout the code (and move other decode code to
555 metadata). Fix also field decoding (band-aid until we load
556 also referenced assemblies).
557 * dis/main.c: start using the new routines.
559 2001-07-13 Miguel de Icaza <miguel@ximian.com>
561 * get.c (get_method): GOOD. Implemented this other bad boy.
563 2001-07-12 Miguel de Icaza <miguel@ximian.com>
565 * get.c (get_token_type): Implement TOKEN_TYPE_TYPE_SPEC.
566 (get_typespec): Implement.
567 (get_typedef_or_ref): Use get_typespec.
569 * dis-cil.c (dissasemble_cil): Implement InlineField
570 (dissasemble_cil): Implement InlineTok.
572 * get.c (get_token, get_field): Implemented. Worked around lame
575 Wed Jul 11 18:52:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
577 * dis-cil.c: output real name of local var.
578 * dump.c: output more info about fields (flags and type). Properly decode
579 Property signatures. Decode also method table.
580 * main.c: Fix local variable info. Hopefully fix field and property list.
582 Mon Jul 9 16:39:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
584 * dump.c: write stuff to output, not stderr. Give more info for properties.
585 * dump.c,dump.h,main.c: implement dump_table_event(), dump_table_file(),
586 dump_table_moduleref().
587 * get.c: first attempt to decode string constants, need to find if and where
588 this is actually specified.
590 Fri Jul 6 19:49:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
592 * dump.c,dump.h: implement dump_table_property().
593 * main.c: implement local variable info disassembling.
594 Annotate entrypoint method. Remove memory leak in
595 parse_method_signature ().
597 2001-07-04 Miguel de Icaza <miguel@ximian.com>
599 * get.c (get_methodref_signature): Implement.
601 * dump.c (dump_table_memberref): Add memberref dumping.
603 Tue, 3 Jul 2001 18:32:10 +0200 Paolo Molaro <lupus@ximian.com>
605 * main.c: return on failure.
607 2001-07-02 Miguel de Icaza <miguel@ximian.com>
609 * dis-cil.c (get_encoded_user_string): Return a string from the
612 * get.c (get_blob_encoded_size): Implement 23.1.4 decoding.
614 2001-07-01 Miguel de Icaza <miguel@ximian.com>
616 * dis-cil.c: New file. CIL opcode dissasembler.
618 2001-06-27 Miguel de Icaza <miguel@ximian.com>
620 * main.c: Split code.
622 2001-06-22 Miguel de Icaza <miguel@ximian.com>
624 * main.c: More work on the disassembler and on the understanding
625 of the metadata file format.