Author: ankit
Date: 2006-06-02 07:02:20 -0400 (Fri, 02 Jun 2006)
New Revision: 61400
Modified:
trunk/mono/mono/dis/ChangeLog
trunk/mono/mono/dis/main.c
Log:
* main.c (dis_method_list): Print only the method name in "{ // end
of.."
Modified: trunk/mono/mono/dis/ChangeLog
===================================================================
--- trunk/mono/mono/dis/ChangeLog 2006-06-02 10:46:42 UTC (rev 61399)
+++ trunk/mono/mono/dis/ChangeLog 2006-06-02 11:02:20 UTC (rev 61400)
@@ -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: trunk/mono/mono/dis/main.c
===================================================================
--- trunk/mono/mono/dis/main.c 2006-06-02 10:46:42 UTC (rev 61399)
+++ trunk/mono/mono/dis/main.c 2006-06-02 11:02:20 UTC (rev 61400)
@@ -852,7 +852,7 @@
MonoGenericContainer *container;
MonoGenericContext *method_context = context;
char *flags, *impl_flags;
- const char *sig;
+ const char *sig, *method_name;
char *sig_str;
guint32 token;
@@ -876,6 +876,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);
@@ -907,9 +908,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