projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mono
/
mini
/
helpers.c
diff --git
a/mono/mini/helpers.c
b/mono/mini/helpers.c
index 493dbc85a70b677bcf498cf3218b579892dc9528..6a741ca23b0ac313ca8be69ed98f7e507ebbebdf 100644
(file)
--- a/
mono/mini/helpers.c
+++ b/
mono/mini/helpers.c
@@
-1,5
+1,6
@@
-/*
- * helpers.c: Assorted routines
+/**
+ * \file
+ * Assorted routines
*
* (C) 2003 Ximian, Inc.
*/
*
* (C) 2003 Ximian, Inc.
*/
@@
-125,19
+126,15
@@
mono_blockset_print (MonoCompile *cfg, MonoBitSet *set, const char *name, guint
}
/**
}
/**
- * mono_disassemble_code:
- * @cfg: compilation context
- * @code: a pointer to the code
- * @size: the code size in bytes
+ * \param cfg compilation context
+ * \param code a pointer to the code
+ * \param size the code size in bytes
*
* Disassemble to code to stdout.
*/
void
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
{
*
* Disassemble to code to stdout.
*/
void
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
{
-#if defined(__native_client__)
- return;
-#endif
#ifndef DISABLE_LOGGING
GHashTable *offset_to_bb_hash = NULL;
int i, cindex, bb_num;
#ifndef DISABLE_LOGGING
GHashTable *offset_to_bb_hash = NULL;
int i, cindex, bb_num;
@@
-145,7
+142,7
@@
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
#ifdef HOST_WIN32
const char *tmp = g_get_tmp_dir ();
#endif
#ifdef HOST_WIN32
const char *tmp = g_get_tmp_dir ();
#endif
- c
onst c
har *objdump_args = g_getenv ("MONO_OBJDUMP_ARGS");
+ char *objdump_args = g_getenv ("MONO_OBJDUMP_ARGS");
char *as_file;
char *o_file;
char *cmd;
char *as_file;
char *o_file;
char *cmd;
@@
-276,7
+273,7
@@
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
unused = system (cmd);
g_free (cmd);
if (!objdump_args)
unused = system (cmd);
g_free (cmd);
if (!objdump_args)
- objdump_args =
""
;
+ objdump_args =
g_strdup ("")
;
fflush (stdout);
fflush (stdout);
@@
-293,6
+290,7
@@
mono_disassemble_code (MonoCompile *cfg, guint8 *code, int size, char *id)
cmd = g_strdup_printf (ARCH_PREFIX DIS_CMD " %s %s", objdump_args, o_file);
unused = system (cmd);
g_free (cmd);
cmd = g_strdup_printf (ARCH_PREFIX DIS_CMD " %s %s", objdump_args, o_file);
unused = system (cmd);
g_free (cmd);
+ g_free (objdump_args);
#else
g_assert_not_reached ();
#endif /* HAVE_SYSTEM */
#else
g_assert_not_reached ();
#endif /* HAVE_SYSTEM */