2 * debug-mono-symfile.c:
4 * Support for reading debug info from .mdb files.
7 * Mono Project (http://www.mono-project.com)
9 * Copyright (C) 2005-2008 Novell, Inc. (http://www.novell.com)
10 * Copyright 2012 Xamarin Inc (http://www.xamarin.com)
11 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
19 #ifdef HAVE_SYS_PARAM_H
20 #include <sys/param.h>
23 #include <mono/metadata/metadata.h>
24 #include <mono/metadata/tabledefs.h>
25 #include <mono/metadata/tokentype.h>
26 #include <mono/metadata/appdomain.h>
27 #include <mono/metadata/exception.h>
28 #include <mono/metadata/debug-helpers.h>
29 #include <mono/metadata/mono-debug.h>
30 #include <mono/metadata/debug-mono-symfile.h>
31 #include <mono/metadata/mono-debug-debugger.h>
32 #include <mono/metadata/mono-endian.h>
33 #include <mono/metadata/metadata-internals.h>
34 #include <mono/metadata/class-internals.h>
35 #include <mono/utils/mono-mmap.h>
36 #include <mono/utils/bsearch.h>
45 #define RANGE_TABLE_CHUNK_SIZE 256
46 #define CLASS_TABLE_CHUNK_SIZE 256
47 #define TYPE_TABLE_PTR_CHUNK_SIZE 256
48 #define TYPE_TABLE_CHUNK_SIZE 65536
50 struct _MonoSymbolFile {
51 const uint8_t *raw_contents;
52 int raw_contents_size;
53 void *raw_contents_handle;
57 GHashTable *method_hash;
58 GHashTable *source_hash;
59 MonoSymbolFileOffsetTable *offset_table;
60 gboolean was_loaded_from_memory;
64 free_method_info (MonoDebugMethodInfo *minfo)
70 free_source_info (MonoDebugSourceInfo *sinfo)
72 g_free (sinfo->source_file);
79 load_symfile (MonoDebugHandle *handle, MonoSymbolFile *symfile, mono_bool in_the_debugger)
81 const char *ptr, *start;
86 ptr = start = (const char*)symfile->raw_contents;
91 ptr += sizeof(uint64_t);
92 if (magic != MONO_SYMBOL_FILE_MAGIC) {
94 g_warning ("Symbol file %s is not a mono symbol file", symfile->filename);
99 ptr += sizeof(uint32_t);
101 ptr += sizeof(uint32_t);
104 * 50.0 is the frozen version for Mono 2.0.
106 * Nobody except me (Martin) is allowed to check the minor version.
108 if (major != MONO_SYMBOL_FILE_MAJOR_VERSION) {
109 if (!in_the_debugger)
110 g_warning ("Symbol file %s has incorrect version (expected %d.%d, got %d)",
111 symfile->filename, MONO_SYMBOL_FILE_MAJOR_VERSION,
112 MONO_SYMBOL_FILE_MINOR_VERSION, major);
116 guid = mono_guid_to_string ((const uint8_t *) ptr);
119 if (strcmp (handle->image->guid, guid)) {
120 if (!in_the_debugger)
121 g_warning ("Symbol file %s doesn't match image %s", symfile->filename,
122 handle->image->name);
128 symfile->major_version = major;
129 symfile->minor_version = minor;
131 symfile->offset_table = (MonoSymbolFileOffsetTable *) ptr;
133 symfile->method_hash = g_hash_table_new_full (
134 NULL, NULL, NULL, (GDestroyNotify) free_method_info);
136 symfile->source_hash = g_hash_table_new_full (
137 NULL, NULL, NULL, (GDestroyNotify) free_source_info);
144 mono_debug_open_mono_symbols (MonoDebugHandle *handle, const uint8_t *raw_contents,
145 int size, gboolean in_the_debugger)
147 MonoSymbolFile *symfile;
149 mono_debugger_lock ();
150 symfile = g_new0 (MonoSymbolFile, 1);
152 if (raw_contents != NULL) {
154 symfile->raw_contents_size = size;
155 symfile->raw_contents = p = (unsigned char *)g_malloc (size);
156 memcpy (p, raw_contents, size);
157 symfile->filename = g_strdup_printf ("LoadedFromMemory");
158 symfile->was_loaded_from_memory = TRUE;
162 symfile->filename = g_strdup_printf ("%s.mdb", mono_image_get_filename (handle->image));
163 symfile->was_loaded_from_memory = FALSE;
164 if ((f = mono_file_map_open (symfile->filename))) {
165 symfile->raw_contents_size = mono_file_map_size (f);
166 if (symfile->raw_contents_size == 0) {
167 if (!in_the_debugger)
168 g_warning ("stat of %s failed: %s",
169 symfile->filename, g_strerror (errno));
171 symfile->raw_contents = (const unsigned char *)mono_file_map (symfile->raw_contents_size, MONO_MMAP_READ|MONO_MMAP_PRIVATE, mono_file_map_fd (f), 0, &symfile->raw_contents_handle);
174 mono_file_map_close (f);
178 if (load_symfile (handle, symfile, in_the_debugger)) {
179 mono_debugger_unlock ();
181 } else if (!in_the_debugger) {
182 mono_debug_close_mono_symbol_file (symfile);
183 mono_debugger_unlock ();
187 mono_debugger_unlock ();
192 mono_debug_close_mono_symbol_file (MonoSymbolFile *symfile)
197 mono_debugger_lock ();
198 if (symfile->method_hash)
199 g_hash_table_destroy (symfile->method_hash);
201 if (symfile->raw_contents) {
202 if (symfile->was_loaded_from_memory)
203 g_free ((gpointer)symfile->raw_contents);
205 mono_file_unmap ((gpointer) symfile->raw_contents, symfile->raw_contents_handle);
208 if (symfile->filename)
209 g_free (symfile->filename);
211 mono_debugger_unlock ();
215 mono_debug_symfile_is_loaded (MonoSymbolFile *symfile)
217 return symfile && symfile->offset_table;
221 read_leb128 (const uint8_t *ptr, const uint8_t **rptr)
230 ret = ret | ((b & 0x7f) << shift);
232 } while ((b & 0x80) == 0x80);
241 read_string (const uint8_t *ptr, const uint8_t **endp)
244 int len = read_leb128 (ptr, &ptr);
246 s = g_filename_from_utf8 ((const char *) ptr, len, NULL, NULL, NULL);
254 MonoSymbolFile *symfile;
255 int line_base, line_range, max_address_incr;
257 uint32_t last_line, last_file, last_offset;
259 int line, file, offset;
264 check_line (StatementMachine *stm, int offset, MonoDebugSourceLocation **location)
266 gchar *source_file = NULL;
268 if (stm->offset <= offset) {
269 stm->last_offset = stm->offset;
270 stm->last_file = stm->file;
271 if (stm->line != 0xfeefee)
272 stm->last_line = stm->line;
276 if (stm->last_file) {
277 int offset = read32(&(stm->symfile->offset_table->_source_table_offset)) +
278 (stm->last_file - 1) * sizeof (MonoSymbolFileSourceEntry);
279 MonoSymbolFileSourceEntry *se = (MonoSymbolFileSourceEntry *)
280 (stm->symfile->raw_contents + offset);
282 source_file = read_string (stm->symfile->raw_contents + read32(&(se->_data_offset)), NULL);
285 if (stm->last_line == 0) {
287 * The IL offset is less than the first IL offset which has a corresponding
294 *location = g_new0 (MonoDebugSourceLocation, 1);
295 (*location)->source_file = source_file;
296 (*location)->row = stm->last_line;
297 (*location)->il_offset = stm->last_offset;
302 * mono_debug_symfile_lookup_location:
303 * @minfo: A `MonoDebugMethodInfo' which can be retrieved by
304 * mono_debug_lookup_method().
305 * @offset: IL offset within the corresponding method's CIL code.
307 * This function is similar to mono_debug_lookup_location(), but we
308 * already looked up the method and also already did the
309 * `native address -> IL offset' mapping.
311 MonoDebugSourceLocation *
312 mono_debug_symfile_lookup_location (MonoDebugMethodInfo *minfo, uint32_t offset)
314 MonoDebugSourceLocation *location = NULL;
315 MonoSymbolFile *symfile;
316 const unsigned char *ptr;
317 StatementMachine stm;
319 #define DW_LNS_copy 1
320 #define DW_LNS_advance_pc 2
321 #define DW_LNS_advance_line 3
322 #define DW_LNS_set_file 4
323 #define DW_LNS_const_add_pc 8
325 #define DW_LNE_end_sequence 1
326 #define DW_LNE_MONO_negate_is_hidden 0x40
328 #define DW_LNE_MONO__extensions_start 0x40
329 #define DW_LNE_MONO__extensions_end 0x7f
331 if ((symfile = minfo->handle->symfile) == NULL)
334 stm.line_base = read32 (&symfile->offset_table->_line_number_table_line_base);
335 stm.line_range = read32 (&symfile->offset_table->_line_number_table_line_range);
336 stm.opcode_base = (uint8_t) read32 (&symfile->offset_table->_line_number_table_opcode_base);
337 stm.max_address_incr = (255 - stm.opcode_base) / stm.line_range;
339 mono_debugger_lock ();
341 ptr = symfile->raw_contents + minfo->lnt_offset;
343 stm.symfile = symfile;
344 stm.offset = stm.last_offset = 0;
350 stm.is_hidden = FALSE;
353 uint8_t opcode = *ptr++;
356 uint8_t size = *ptr++;
357 const unsigned char *end_ptr = ptr + size;
361 if (opcode == DW_LNE_end_sequence) {
362 if (check_line (&stm, -1, &location))
365 } else if (opcode == DW_LNE_MONO_negate_is_hidden) {
366 stm.is_hidden = !stm.is_hidden;
367 } else if ((opcode >= DW_LNE_MONO__extensions_start) &&
368 (opcode <= DW_LNE_MONO__extensions_end)) {
369 ; // reserved for future extensions
371 g_warning ("Unknown extended opcode %x in LNT", opcode);
376 } else if (opcode < stm.opcode_base) {
379 if (check_line (&stm, offset, &location))
382 case DW_LNS_advance_pc:
383 stm.offset += read_leb128 (ptr, &ptr);
385 case DW_LNS_advance_line:
386 stm.line += read_leb128 (ptr, &ptr);
388 case DW_LNS_set_file:
389 stm.file = read_leb128 (ptr, &ptr);
391 case DW_LNS_const_add_pc:
392 stm.offset += stm.max_address_incr;
395 g_warning ("Unknown standard opcode %x in LNT", opcode);
399 opcode -= stm.opcode_base;
401 stm.offset += opcode / stm.line_range;
402 stm.line += stm.line_base + (opcode % stm.line_range);
404 if (check_line (&stm, offset, &location))
410 mono_debugger_unlock ();
414 mono_debugger_unlock ();
419 add_line (StatementMachine *stm, GPtrArray *il_offset_array, GPtrArray *line_number_array, GPtrArray *source_file_array, GPtrArray *hidden_array)
421 g_ptr_array_add (il_offset_array, GUINT_TO_POINTER (stm->offset));
422 g_ptr_array_add (line_number_array, GUINT_TO_POINTER (stm->line));
423 g_ptr_array_add (source_file_array, GUINT_TO_POINTER (stm->file));
424 g_ptr_array_add (hidden_array, GUINT_TO_POINTER (stm->is_hidden || stm->line <= 0));
426 if (!stm->is_hidden && !stm->first_file)
427 stm->first_file = stm->file;
431 * mono_debug_symfile_free_location:
433 * Free a MonoDebugSourceLocation returned by
434 * mono_debug_symfile_lookup_location
437 mono_debug_symfile_free_location (MonoDebugSourceLocation *location)
439 g_free (location->source_file);
444 * LOCKING: Assumes the debugger lock is held.
446 static MonoDebugSourceInfo*
447 get_source_info (MonoSymbolFile *symfile, int index)
449 MonoDebugSourceInfo *info;
451 info = (MonoDebugSourceInfo *)g_hash_table_lookup (symfile->source_hash, GUINT_TO_POINTER (index));
453 int offset = read32(&(symfile->offset_table->_source_table_offset)) +
454 (index - 1) * sizeof (MonoSymbolFileSourceEntry);
455 MonoSymbolFileSourceEntry *se = (MonoSymbolFileSourceEntry *)
456 (symfile->raw_contents + offset);
457 const uint8_t *ptr = symfile->raw_contents + read32(&(se->_data_offset));
459 info = g_new0 (MonoDebugSourceInfo, 1);
460 info->source_file = read_string (ptr, &ptr);
461 info->guid = (guint8 *)g_malloc0 (16);
462 memcpy (info->guid, ptr, 16);
464 info->hash = (guint8 *)g_malloc0 (16);
465 memcpy (info->hash, ptr, 16);
467 g_hash_table_insert (symfile->source_hash, GUINT_TO_POINTER (index), info);
473 LNT_FLAG_HAS_COLUMN_INFO = 1 << 1,
474 LNT_FLAG_HAS_END_INFO = 1 << 2,
475 } LineNumberTableFlags;
477 static LineNumberTableFlags
478 method_get_lnt_flags (MonoDebugMethodInfo *minfo)
480 MonoSymbolFile *symfile;
481 const unsigned char *ptr;
484 if ((symfile = minfo->handle->symfile) == NULL)
485 return (LineNumberTableFlags)0;
487 ptr = symfile->raw_contents + minfo->data_offset;
489 /* Has to read 'flags' which is preceeded by a bunch of other data */
490 /* compile_unit_index */
491 read_leb128 (ptr, &ptr);
492 /* local variable table offset */
493 read_leb128 (ptr, &ptr);
495 read_leb128 (ptr, &ptr);
496 /* code block table offset */
497 read_leb128 (ptr, &ptr);
498 /* scope variable table offset */
499 read_leb128 (ptr, &ptr);
500 /* real name offset */
501 read_leb128 (ptr, &ptr);
503 flags = read_leb128 (ptr, &ptr);
504 return (LineNumberTableFlags)flags;
508 * mono_debug_symfile_get_seq_points:
510 * On return, SOURCE_FILE_LIST will point to a GPtrArray of MonoDebugSourceFile
511 * structures, and SOURCE_FILES will contain indexes into this array.
512 * The MonoDebugSourceFile structures are owned by this module.
515 mono_debug_symfile_get_seq_points (MonoDebugMethodInfo *minfo, char **source_file, GPtrArray **source_file_list, int **source_files, MonoSymSeqPoint **seq_points, int *n_seq_points)
517 // FIXME: Unify this with mono_debug_symfile_lookup_location
518 MonoSymbolFile *symfile;
519 const unsigned char *ptr;
520 StatementMachine stm;
522 LineNumberTableFlags flags;
523 GPtrArray *il_offset_array, *line_number_array, *source_file_array, *hidden_array;
524 gboolean has_column_info, has_end_info;
525 MonoSymSeqPoint *sps;
527 if (source_file_list)
528 *source_file_list = NULL;
534 *source_files = NULL;
538 if ((symfile = minfo->handle->symfile) == NULL)
541 flags = method_get_lnt_flags (minfo);
542 has_column_info = (flags & LNT_FLAG_HAS_COLUMN_INFO) > 0;
543 has_end_info = (flags & LNT_FLAG_HAS_END_INFO) > 0;
545 il_offset_array = g_ptr_array_new ();
546 line_number_array = g_ptr_array_new ();
547 source_file_array = g_ptr_array_new ();
548 hidden_array = g_ptr_array_new();
550 stm.line_base = read32 (&symfile->offset_table->_line_number_table_line_base);
551 stm.line_range = read32 (&symfile->offset_table->_line_number_table_line_range);
552 stm.opcode_base = (uint8_t) read32 (&symfile->offset_table->_line_number_table_opcode_base);
553 stm.max_address_incr = (255 - stm.opcode_base) / stm.line_range;
555 mono_debugger_lock ();
557 ptr = symfile->raw_contents + minfo->lnt_offset;
559 stm.symfile = symfile;
560 stm.offset = stm.last_offset = 0;
566 stm.is_hidden = FALSE;
569 uint8_t opcode = *ptr++;
572 uint8_t size = *ptr++;
573 const unsigned char *end_ptr = ptr + size;
577 if (opcode == DW_LNE_end_sequence) {
578 if (il_offset_array->len == 0)
582 } else if (opcode == DW_LNE_MONO_negate_is_hidden) {
583 stm.is_hidden = !stm.is_hidden;
584 } else if ((opcode >= DW_LNE_MONO__extensions_start) &&
585 (opcode <= DW_LNE_MONO__extensions_end)) {
586 ; // reserved for future extensions
588 g_warning ("Unknown extended opcode %x in LNT", opcode);
593 } else if (opcode < stm.opcode_base) {
596 add_line (&stm, il_offset_array, line_number_array, source_file_array, hidden_array);
598 case DW_LNS_advance_pc:
599 stm.offset += read_leb128 (ptr, &ptr);
601 case DW_LNS_advance_line:
602 stm.line += read_leb128 (ptr, &ptr);
604 case DW_LNS_set_file:
605 stm.file = read_leb128 (ptr, &ptr);
607 case DW_LNS_const_add_pc:
608 stm.offset += stm.max_address_incr;
611 g_warning ("Unknown standard opcode %x in LNT", opcode);
612 g_assert_not_reached ();
615 opcode -= stm.opcode_base;
617 stm.offset += opcode / stm.line_range;
618 stm.line += stm.line_base + (opcode % stm.line_range);
620 add_line (&stm, il_offset_array, line_number_array, source_file_array, hidden_array);
624 if (!stm.file && stm.first_file)
625 stm.file = stm.first_file;
627 if (stm.file && source_file) {
628 int offset = read32(&(stm.symfile->offset_table->_source_table_offset)) +
629 (stm.file - 1) * sizeof (MonoSymbolFileSourceEntry);
630 MonoSymbolFileSourceEntry *se = (MonoSymbolFileSourceEntry *)
631 (stm.symfile->raw_contents + offset);
634 *source_file = read_string (stm.symfile->raw_contents + read32(&(se->_data_offset)), NULL);
637 if (source_file_list) {
638 int file, last_file = 0;
640 *source_file_list = g_ptr_array_new ();
642 *source_files = (int *)g_malloc (il_offset_array->len * sizeof (int));
644 for (i = 0; i < il_offset_array->len; ++i) {
645 file = GPOINTER_TO_UINT (g_ptr_array_index (source_file_array, i));
646 if (file && file != last_file) {
647 MonoDebugSourceInfo *info = get_source_info (symfile, file);
649 g_ptr_array_add (*source_file_list, info);
653 (*source_files) [i] = (*source_file_list)->len - 1;
658 g_assert (seq_points);
660 n = il_offset_array->len;
661 for (i = 0; i < il_offset_array->len; i++) {
662 if (GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
668 *seq_points = sps = g_new0 (MonoSymSeqPoint, n);
670 for (i = 0; i < il_offset_array->len; ++i) {
671 MonoSymSeqPoint *sp = &(sps [j]);
672 if (!GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
673 sp->il_offset = GPOINTER_TO_UINT (g_ptr_array_index (il_offset_array, i));
674 sp->line = GPOINTER_TO_UINT (g_ptr_array_index (line_number_array, i));
682 if (has_column_info) {
684 for (i = 0; i < il_offset_array->len; ++i) {
685 MonoSymSeqPoint *sp = &(sps [j]);
686 int column = read_leb128 (ptr, &ptr);
687 if (!GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
696 for (i = 0; i < il_offset_array->len; ++i) {
697 MonoSymSeqPoint *sp = &(sps [j]);
698 int end_row, end_column = -1;
700 end_row = read_leb128 (ptr, &ptr);
701 if (end_row != 0xffffff) {
702 end_row += GPOINTER_TO_UINT (g_ptr_array_index (line_number_array, i));
703 end_column = read_leb128 (ptr, &ptr);
704 if (!GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
705 sp->end_line = end_row;
706 sp->end_column = end_column;
714 g_ptr_array_free (il_offset_array, TRUE);
715 g_ptr_array_free (line_number_array, TRUE);
716 g_ptr_array_free (hidden_array, TRUE);
718 mono_debugger_unlock ();
723 compare_method (const void *key, const void *object)
725 uint32_t token = GPOINTER_TO_UINT (key);
726 MonoSymbolFileMethodEntry *me = (MonoSymbolFileMethodEntry*)object;
728 return token - read32(&(me->_token));
731 MonoDebugMethodInfo *
732 mono_debug_symfile_lookup_method (MonoDebugHandle *handle, MonoMethod *method)
734 MonoSymbolFileMethodEntry *first_ie, *ie;
735 MonoDebugMethodInfo *minfo;
736 MonoSymbolFile *symfile = handle->symfile;
738 if (!symfile->method_hash)
741 if (handle->image != mono_class_get_image (mono_method_get_class (method)))
744 mono_debugger_lock ();
746 minfo = (MonoDebugMethodInfo *)g_hash_table_lookup (symfile->method_hash, method);
748 mono_debugger_unlock ();
752 first_ie = (MonoSymbolFileMethodEntry *)
753 (symfile->raw_contents + read32(&(symfile->offset_table->_method_table_offset)));
755 ie = (MonoSymbolFileMethodEntry *)mono_binary_search (GUINT_TO_POINTER (mono_method_get_token (method)), first_ie,
756 read32(&(symfile->offset_table->_method_count)),
757 sizeof (MonoSymbolFileMethodEntry), compare_method);
760 mono_debugger_unlock ();
764 minfo = g_new0 (MonoDebugMethodInfo, 1);
765 minfo->index = (ie - first_ie) + 1;
766 minfo->method = method;
767 minfo->handle = handle;
769 minfo->data_offset = read32 (&(ie->_data_offset));
770 minfo->lnt_offset = read32 (&(ie->_line_number_table));
772 g_hash_table_insert (symfile->method_hash, method, minfo);
774 mono_debugger_unlock ();
779 * mono_debug_symfile_lookup_locals:
781 * Return information about the local variables of MINFO from the symbol file.
782 * Return NULL if no information can be found.
783 * The result should be freed using mono_debug_symfile_free_locals ().
786 mono_debug_symfile_lookup_locals (MonoDebugMethodInfo *minfo)
788 MonoSymbolFile *symfile = minfo->handle->symfile;
790 int i, len, locals_offset, num_locals, block_index;
791 int code_block_table_offset;
792 MonoDebugLocalsInfo *res;
797 p = symfile->raw_contents + minfo->data_offset;
799 /* compile_unit_index = */ read_leb128 (p, &p);
800 locals_offset = read_leb128 (p, &p);
801 /* namespace_id = */ read_leb128 (p, &p);
802 code_block_table_offset = read_leb128 (p, &p);
804 res = g_new0 (MonoDebugLocalsInfo, 1);
806 p = symfile->raw_contents + code_block_table_offset;
807 res->num_blocks = read_leb128 (p, &p);
808 res->code_blocks = g_new0 (MonoDebugCodeBlock, res->num_blocks);
809 for (i = 0; i < res->num_blocks; ++i) {
810 res->code_blocks [i].type = read_leb128 (p, &p);
811 res->code_blocks [i].parent = read_leb128 (p, &p);
812 res->code_blocks [i].start_offset = read_leb128 (p, &p);
813 res->code_blocks [i].end_offset = read_leb128 (p, &p);
816 p = symfile->raw_contents + locals_offset;
817 num_locals = read_leb128 (p, &p);
819 res->num_locals = num_locals;
820 res->locals = g_new0 (MonoDebugLocalVar, num_locals);
822 for (i = 0; i < num_locals; ++i) {
823 res->locals [i].index = read_leb128 (p, &p);
824 len = read_leb128 (p, &p);
825 res->locals [i].name = (char *)g_malloc (len + 1);
826 memcpy (res->locals [i].name, p, len);
827 res->locals [i].name [len] = '\0';
829 block_index = read_leb128 (p, &p);
830 if (block_index >= 1 && block_index <= res->num_blocks)
831 res->locals [i].block = &res->code_blocks [block_index - 1];
837 #else /* DISABLE_MDB */
840 mono_debug_open_mono_symbols (MonoDebugHandle *handle, const uint8_t *raw_contents,
841 int size, gboolean in_the_debugger)
847 mono_debug_close_mono_symbol_file (MonoSymbolFile *symfile)
852 mono_debug_symfile_is_loaded (MonoSymbolFile *symfile)
857 MonoDebugMethodInfo *
858 mono_debug_symfile_lookup_method (MonoDebugHandle *handle, MonoMethod *method)
864 mono_debug_symfile_get_seq_points (MonoDebugMethodInfo *minfo, char **source_file, GPtrArray **source_file_list, int **source_files, MonoSymSeqPoint **seq_points, int *n_seq_points)
866 g_assert_not_reached ();
869 MonoDebugSourceLocation *
870 mono_debug_symfile_lookup_location (MonoDebugMethodInfo *minfo, uint32_t offset)
876 mono_debug_symfile_lookup_locals (MonoDebugMethodInfo *minfo)
882 mono_debug_symfile_free_location (MonoDebugSourceLocation *location)