Author: ankit
Date: 2006-06-02 07:03:12 -0400 (Fri, 02 Jun 2006)
New Revision: 61401
Modified:
branches/mono-1-1-13/mono/mono/dis/ChangeLog
branches/mono-1-1-13/mono/mono/dis/main.c
Log:
* main.c (dis_method_list): Print only the method name in "{ // end
of.."
Modified: branches/mono-1-1-13/mono/mono/dis/ChangeLog
===================================================================
--- branches/mono-1-1-13/mono/mono/dis/ChangeLog 2006-06-02 11:02:20 UTC
(rev 61400)
+++ branches/mono-1-1-13/mono/mono/dis/ChangeLog 2006-06-02 11:03:12 UTC
(rev 61401)
@@ -1,5 +1,10 @@
2006-06-02 Ankit Jain <[EMAIL PROTECTED]>
+ * main.c (dis_method_list): Print only the method name in "{ // end
+ of.."
+
+2006-06-02 Ankit Jain <[EMAIL PROTECTED]>
+
* get.c (get_typedef): Return NULL for <Module> type.
(get_escaped_class_name): Likewise.
(dis_stringify_object_with_class): Likewise.
Modified: branches/mono-1-1-13/mono/mono/dis/main.c
===================================================================
--- branches/mono-1-1-13/mono/mono/dis/main.c 2006-06-02 11:02:20 UTC (rev
61400)
+++ branches/mono-1-1-13/mono/mono/dis/main.c 2006-06-02 11:03:12 UTC (rev
61401)
@@ -850,7 +850,7 @@
MonoGenericContainer *container;
MonoGenericContext *method_context = context;
char *flags, *impl_flags;
- const char *sig;
+ const char *sig, *method_name;
char *sig_str;
guint32 token;
@@ -874,6 +874,7 @@
ms = mono_metadata_parse_method_signature_full (m,
method_context ? method_context->container : NULL, i + 1, sig, &sig);
sig_str = dis_stringify_method_signature (m, ms, i + 1,
method_context, FALSE);
+ method_name = mono_metadata_string_heap (m, cols
[MONO_METHOD_NAME]);
fprintf (output, " // method line %d\n", i + 1);
fprintf (output, " .method %s", flags);
@@ -905,9 +906,9 @@
else
dis_code (m, token, cols [MONO_METHOD_RVA],
method_context);
if (klass_name)
- fprintf (output, " } // end of method %s::%s\n\n",
klass_name, sig_str);
+ fprintf (output, " } // end of method %s::%s\n\n",
klass_name, method_name);
else
- fprintf (output, " } // end of global method
%s\n\n", sig_str);
+ fprintf (output, " } // end of global method
%s\n\n", method_name);
mono_metadata_free_method_signature (ms);
g_free (sig_str);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches