MonoDebugMethodInfo *minfo = mono_debug_lookup_method (method);
if (!info) {
- char *source_file;
int i, n_il_offsets;
int *source_files;
GPtrArray *source_file_list;
/* Return 0 counts for all locations */
- mono_debug_get_seq_points (minfo, &source_file, &source_file_list, &source_files, &sym_seq_points, &n_il_offsets);
+ mono_debug_get_seq_points (minfo, NULL, &source_file_list, &source_files, &sym_seq_points, &n_il_offsets);
for (i = 0; i < n_il_offsets; ++i) {
MonoSymSeqPoint *sp = &sym_seq_points [i];
const char *srcfile = "";
gpointer iter = NULL;
MonoMethod *method;
MonoDebugSourceInfo *sinfo;
- char *source_file, *s;
+ char *s;
gboolean found = FALSE;
int i;
GPtrArray *source_file_list;
MonoDebugMethodInfo *minfo = mono_debug_lookup_method (method);
if (minfo) {
- mono_debug_get_seq_points (minfo, &source_file, &source_file_list, NULL, NULL, NULL);
+ mono_debug_get_seq_points (minfo, NULL, &source_file_list, NULL, NULL, NULL);
for (i = 0; i < source_file_list->len; ++i) {
sinfo = (MonoDebugSourceInfo *)g_ptr_array_index (source_file_list, i);
/*
source_file = g_strdup ("<unknown>");
dir = g_path_get_dirname (source_file);
filename = g_path_get_basename (source_file);
+ g_free (source_file);
return (LLVMValueRef)mono_llvm_di_create_function (module->di_builder, module->cu, method, cfg->method->name, name, dir, filename, n_seq_points ? sym_seq_points [0].line : 1);
}