projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2008-01-24 Zoltan Varga <vargaz@gmail.com>
[mono.git]
/
mono
/
mini
/
helpers.c
diff --git
a/mono/mini/helpers.c
b/mono/mini/helpers.c
index 935c39cd81d7087654a6bfb3402cb92ced05835e..e0d7a5c71aaa1e663b4dccd34fb8acfc521b4163 100644
(file)
--- a/
mono/mini/helpers.c
+++ b/
mono/mini/helpers.c
@@
-127,7
+127,7
@@
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
}
fprintf (ofd, ":\n");
}
fprintf (ofd, ":\n");
- if (emit_debug_info) {
+ if (emit_debug_info
&& cfg != NULL
) {
MonoBasicBlock *bb;
fprintf (ofd, ".stabs \"\",100,0,0,.Ltext0\n");
MonoBasicBlock *bb;
fprintf (ofd, ".stabs \"\",100,0,0,.Ltext0\n");
@@
-176,6
+176,8
@@
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
#define AS_CMD "as -xarch=v9"
#elif defined(__i386__) || defined(__x86_64__)
#define AS_CMD "as -gstabs"
#define AS_CMD "as -xarch=v9"
#elif defined(__i386__) || defined(__x86_64__)
#define AS_CMD "as -gstabs"
+#elif defined(__mips__)
+#define AS_CMD "as -mips32"
#else
#define AS_CMD "as"
#endif
#else
#define AS_CMD "as"
#endif
@@
-197,6
+199,10
@@
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
system (cmd);
g_free (cmd);
system (cmd);
g_free (cmd);
+#ifndef PLATFORM_WIN32
+ unlink (o_file);
+ unlink (as_file);
+#endif
g_free (o_file);
g_free (as_file);
#endif
g_free (o_file);
g_free (as_file);
#endif