Author: spouliot
Date: 2005-03-29 13:16:10 -0500 (Tue, 29 Mar 2005)
New Revision: 42349
Modified:
trunk/mono/mono/monograph/ChangeLog
trunk/mono/mono/monograph/monograph.c
Log:
2005-03-29 Sebastien Pouliot <[EMAIL PROTECTED]>
* monograph.c: Add mono-compiler.h header to allow/ease compilation
with non-GCC compilers. Fix default loading of mscorlib.dll.
Modified: trunk/mono/mono/monograph/ChangeLog
===================================================================
--- trunk/mono/mono/monograph/ChangeLog 2005-03-29 18:13:42 UTC (rev 42348)
+++ trunk/mono/mono/monograph/ChangeLog 2005-03-29 18:16:10 UTC (rev 42349)
@@ -1,3 +1,8 @@
+2005-03-29 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * monograph.c: Add mono-compiler.h header to allow/ease compilation
+ with non-GCC compilers. Fix default loading of mscorlib.dll.
+
2005-02-09 Ben Maurer <[EMAIL PROTECTED]>
* monograph.c (print_method): Don't use method->info, as this will
Modified: trunk/mono/mono/monograph/monograph.c
===================================================================
--- trunk/mono/mono/monograph/monograph.c 2005-03-29 18:13:42 UTC (rev
42348)
+++ trunk/mono/mono/monograph/monograph.c 2005-03-29 18:16:10 UTC (rev
42349)
@@ -8,6 +8,7 @@
#include "mono/metadata/mono-endian.h"
#include "mono/metadata/appdomain.h" /* mono_init */
#include "mono/metadata/debug-helpers.h"
+#include "mono/utils/mono-compiler.h"
static FILE *output;
static int include_namespace = 0;
@@ -1050,12 +1051,14 @@
aname = argv [i];
if (argc > i + 1)
cname = argv [i + 1];
- if (!aname)
- aname = "mscorlib";
+ if (aname) {
+ assembly = mono_assembly_open (aname, NULL);
+ } else {
+ assembly = mono_image_get_assembly (mono_get_corlib ());
+ }
if (!cname && (graphtype == GRAPH_TYPES))
cname = "System.Object";
- assembly = mono_assembly_open (aname, NULL);
if (!assembly) {
g_print ("cannot open assembly %s\n", aname);
exit (1);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches