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-endian.h>
32 #include <mono/metadata/metadata-internals.h>
33 #include <mono/metadata/class-internals.h>
34 #include <mono/utils/mono-mmap.h>
35 #include <mono/utils/bsearch.h>
44 #define RANGE_TABLE_CHUNK_SIZE 256
45 #define CLASS_TABLE_CHUNK_SIZE 256
46 #define TYPE_TABLE_PTR_CHUNK_SIZE 256
47 #define TYPE_TABLE_CHUNK_SIZE 65536
49 struct _MonoSymbolFile {
50 const uint8_t *raw_contents;
51 int raw_contents_size;
52 void *raw_contents_handle;
56 GHashTable *method_hash;
57 GHashTable *source_hash;
58 MonoSymbolFileOffsetTable *offset_table;
59 gboolean was_loaded_from_memory;
63 free_method_info (MonoDebugMethodInfo *minfo)
69 free_source_info (MonoDebugSourceInfo *sinfo)
71 g_free (sinfo->source_file);
78 load_symfile (MonoDebugHandle *handle, MonoSymbolFile *symfile, mono_bool in_the_debugger)
80 const char *ptr, *start;
85 ptr = start = (const char*)symfile->raw_contents;
90 ptr += sizeof(uint64_t);
91 if (magic != MONO_SYMBOL_FILE_MAGIC) {
93 g_warning ("Symbol file %s is not a mono symbol file", symfile->filename);
98 ptr += sizeof(uint32_t);
100 ptr += sizeof(uint32_t);
103 * 50.0 is the frozen version for Mono 2.0.
105 * Nobody except me (Martin) is allowed to check the minor version.
107 if (major != MONO_SYMBOL_FILE_MAJOR_VERSION) {
108 if (!in_the_debugger)
109 g_warning ("Symbol file %s has incorrect version (expected %d.%d, got %d)",
110 symfile->filename, MONO_SYMBOL_FILE_MAJOR_VERSION,
111 MONO_SYMBOL_FILE_MINOR_VERSION, major);
115 guid = mono_guid_to_string ((const uint8_t *) ptr);
118 if (strcmp (handle->image->guid, guid)) {
119 if (!in_the_debugger)
120 g_warning ("Symbol file %s doesn't match image %s", symfile->filename,
121 handle->image->name);
127 symfile->major_version = major;
128 symfile->minor_version = minor;
130 symfile->offset_table = (MonoSymbolFileOffsetTable *) ptr;
132 symfile->method_hash = g_hash_table_new_full (
133 NULL, NULL, NULL, (GDestroyNotify) free_method_info);
135 symfile->source_hash = g_hash_table_new_full (
136 NULL, NULL, NULL, (GDestroyNotify) free_source_info);
143 mono_debug_open_mono_symbols (MonoDebugHandle *handle, const uint8_t *raw_contents,
144 int size, gboolean in_the_debugger)
146 MonoSymbolFile *symfile;
148 mono_debugger_lock ();
149 symfile = g_new0 (MonoSymbolFile, 1);
151 if (raw_contents != NULL) {
153 symfile->raw_contents_size = size;
154 symfile->raw_contents = p = (unsigned char *)g_malloc (size);
155 memcpy (p, raw_contents, size);
156 symfile->filename = g_strdup_printf ("LoadedFromMemory");
157 symfile->was_loaded_from_memory = TRUE;
161 symfile->filename = g_strdup_printf ("%s.mdb", mono_image_get_filename (handle->image));
162 symfile->was_loaded_from_memory = FALSE;
163 if ((f = mono_file_map_open (symfile->filename))) {
164 symfile->raw_contents_size = mono_file_map_size (f);
165 if (symfile->raw_contents_size == 0) {
166 if (!in_the_debugger)
167 g_warning ("stat of %s failed: %s",
168 symfile->filename, g_strerror (errno));
170 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);
173 mono_file_map_close (f);
177 if (load_symfile (handle, symfile, in_the_debugger)) {
178 mono_debugger_unlock ();
180 } else if (!in_the_debugger) {
181 mono_debug_close_mono_symbol_file (symfile);
182 mono_debugger_unlock ();
186 mono_debugger_unlock ();
191 mono_debug_close_mono_symbol_file (MonoSymbolFile *symfile)
196 mono_debugger_lock ();
197 if (symfile->method_hash)
198 g_hash_table_destroy (symfile->method_hash);
200 if (symfile->raw_contents) {
201 if (symfile->was_loaded_from_memory)
202 g_free ((gpointer)symfile->raw_contents);
204 mono_file_unmap ((gpointer) symfile->raw_contents, symfile->raw_contents_handle);
207 if (symfile->filename)
208 g_free (symfile->filename);
210 mono_debugger_unlock ();
214 mono_debug_symfile_is_loaded (MonoSymbolFile *symfile)
216 return symfile && symfile->offset_table;
220 read_leb128 (const uint8_t *ptr, const uint8_t **rptr)
229 ret = ret | ((b & 0x7f) << shift);
231 } while ((b & 0x80) == 0x80);
240 read_string (const uint8_t *ptr, const uint8_t **endp)
243 int len = read_leb128 (ptr, &ptr);
245 s = g_filename_from_utf8 ((const char *) ptr, len, NULL, NULL, NULL);
253 MonoSymbolFile *symfile;
254 int line_base, line_range, max_address_incr;
256 uint32_t last_line, last_file, last_offset;
258 int line, file, offset;
263 check_line (StatementMachine *stm, int offset, MonoDebugSourceLocation **location)
265 gchar *source_file = NULL;
267 if (stm->offset <= offset) {
268 stm->last_offset = stm->offset;
269 stm->last_file = stm->file;
270 if (stm->line != 0xfeefee)
271 stm->last_line = stm->line;
275 if (stm->last_file) {
276 int offset = read32(&(stm->symfile->offset_table->_source_table_offset)) +
277 (stm->last_file - 1) * sizeof (MonoSymbolFileSourceEntry);
278 MonoSymbolFileSourceEntry *se = (MonoSymbolFileSourceEntry *)
279 (stm->symfile->raw_contents + offset);
281 source_file = read_string (stm->symfile->raw_contents + read32(&(se->_data_offset)), NULL);
284 if (stm->last_line == 0) {
286 * The IL offset is less than the first IL offset which has a corresponding
293 *location = g_new0 (MonoDebugSourceLocation, 1);
294 (*location)->source_file = source_file;
295 (*location)->row = stm->last_line;
296 (*location)->il_offset = stm->last_offset;
301 * mono_debug_symfile_lookup_location:
302 * \param minfo A \c MonoDebugMethodInfo which can be retrieved by mono_debug_lookup_method().
303 * \param offset IL offset within the corresponding method's CIL code.
305 * This function is similar to mono_debug_lookup_location(), but we
306 * already looked up the method and also already did the
307 * native address -> IL offset mapping.
309 MonoDebugSourceLocation *
310 mono_debug_symfile_lookup_location (MonoDebugMethodInfo *minfo, uint32_t offset)
312 MonoDebugSourceLocation *location = NULL;
313 MonoSymbolFile *symfile;
314 const unsigned char *ptr;
315 StatementMachine stm;
317 #define DW_LNS_copy 1
318 #define DW_LNS_advance_pc 2
319 #define DW_LNS_advance_line 3
320 #define DW_LNS_set_file 4
321 #define DW_LNS_const_add_pc 8
323 #define DW_LNE_end_sequence 1
324 #define DW_LNE_MONO_negate_is_hidden 0x40
326 #define DW_LNE_MONO__extensions_start 0x40
327 #define DW_LNE_MONO__extensions_end 0x7f
329 if ((symfile = minfo->handle->symfile) == NULL)
332 stm.line_base = read32 (&symfile->offset_table->_line_number_table_line_base);
333 stm.line_range = read32 (&symfile->offset_table->_line_number_table_line_range);
334 stm.opcode_base = (uint8_t) read32 (&symfile->offset_table->_line_number_table_opcode_base);
335 stm.max_address_incr = (255 - stm.opcode_base) / stm.line_range;
337 mono_debugger_lock ();
339 ptr = symfile->raw_contents + minfo->lnt_offset;
341 stm.symfile = symfile;
342 stm.offset = stm.last_offset = 0;
348 stm.is_hidden = FALSE;
351 uint8_t opcode = *ptr++;
354 uint8_t size = *ptr++;
355 const unsigned char *end_ptr = ptr + size;
359 if (opcode == DW_LNE_end_sequence) {
360 if (check_line (&stm, -1, &location))
363 } else if (opcode == DW_LNE_MONO_negate_is_hidden) {
364 stm.is_hidden = !stm.is_hidden;
365 } else if ((opcode >= DW_LNE_MONO__extensions_start) &&
366 (opcode <= DW_LNE_MONO__extensions_end)) {
367 ; // reserved for future extensions
369 g_warning ("Unknown extended opcode %x in LNT", opcode);
374 } else if (opcode < stm.opcode_base) {
377 if (check_line (&stm, offset, &location))
380 case DW_LNS_advance_pc:
381 stm.offset += read_leb128 (ptr, &ptr);
383 case DW_LNS_advance_line:
384 stm.line += read_leb128 (ptr, &ptr);
386 case DW_LNS_set_file:
387 stm.file = read_leb128 (ptr, &ptr);
389 case DW_LNS_const_add_pc:
390 stm.offset += stm.max_address_incr;
393 g_warning ("Unknown standard opcode %x in LNT", opcode);
397 opcode -= stm.opcode_base;
399 stm.offset += opcode / stm.line_range;
400 stm.line += stm.line_base + (opcode % stm.line_range);
402 if (check_line (&stm, offset, &location))
408 mono_debugger_unlock ();
412 mono_debugger_unlock ();
417 add_line (StatementMachine *stm, GPtrArray *il_offset_array, GPtrArray *line_number_array, GPtrArray *source_file_array, GPtrArray *hidden_array)
419 g_ptr_array_add (il_offset_array, GUINT_TO_POINTER (stm->offset));
420 g_ptr_array_add (line_number_array, GUINT_TO_POINTER (stm->line));
421 g_ptr_array_add (source_file_array, GUINT_TO_POINTER (stm->file));
422 g_ptr_array_add (hidden_array, GUINT_TO_POINTER (stm->is_hidden || stm->line <= 0));
424 if (!stm->is_hidden && !stm->first_file)
425 stm->first_file = stm->file;
429 * mono_debug_symfile_free_location:
431 * Free a MonoDebugSourceLocation returned by
432 * mono_debug_symfile_lookup_location
435 mono_debug_symfile_free_location (MonoDebugSourceLocation *location)
437 g_free (location->source_file);
442 * LOCKING: Assumes the debugger lock is held.
444 static MonoDebugSourceInfo*
445 get_source_info (MonoSymbolFile *symfile, int index)
447 MonoDebugSourceInfo *info;
449 info = (MonoDebugSourceInfo *)g_hash_table_lookup (symfile->source_hash, GUINT_TO_POINTER (index));
451 int offset = read32(&(symfile->offset_table->_source_table_offset)) +
452 (index - 1) * sizeof (MonoSymbolFileSourceEntry);
453 MonoSymbolFileSourceEntry *se = (MonoSymbolFileSourceEntry *)
454 (symfile->raw_contents + offset);
455 const uint8_t *ptr = symfile->raw_contents + read32(&(se->_data_offset));
457 info = g_new0 (MonoDebugSourceInfo, 1);
458 info->source_file = read_string (ptr, &ptr);
459 info->guid = (guint8 *)g_malloc0 (16);
460 memcpy (info->guid, ptr, 16);
462 info->hash = (guint8 *)g_malloc0 (16);
463 memcpy (info->hash, ptr, 16);
465 g_hash_table_insert (symfile->source_hash, GUINT_TO_POINTER (index), info);
471 LNT_FLAG_HAS_COLUMN_INFO = 1 << 1,
472 LNT_FLAG_HAS_END_INFO = 1 << 2,
473 } LineNumberTableFlags;
475 static LineNumberTableFlags
476 method_get_lnt_flags (MonoDebugMethodInfo *minfo)
478 MonoSymbolFile *symfile;
479 const unsigned char *ptr;
482 if ((symfile = minfo->handle->symfile) == NULL)
483 return (LineNumberTableFlags)0;
485 ptr = symfile->raw_contents + minfo->data_offset;
487 /* Has to read 'flags' which is preceeded by a bunch of other data */
488 /* compile_unit_index */
489 read_leb128 (ptr, &ptr);
490 /* local variable table offset */
491 read_leb128 (ptr, &ptr);
493 read_leb128 (ptr, &ptr);
494 /* code block table offset */
495 read_leb128 (ptr, &ptr);
496 /* scope variable table offset */
497 read_leb128 (ptr, &ptr);
498 /* real name offset */
499 read_leb128 (ptr, &ptr);
501 flags = read_leb128 (ptr, &ptr);
502 return (LineNumberTableFlags)flags;
506 * mono_debug_symfile_get_seq_points:
508 * On return, SOURCE_FILE_LIST will point to a GPtrArray of MonoDebugSourceFile
509 * structures, and SOURCE_FILES will contain indexes into this array.
510 * The MonoDebugSourceFile structures are owned by this module.
513 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)
515 // FIXME: Unify this with mono_debug_symfile_lookup_location
516 MonoSymbolFile *symfile;
517 const unsigned char *ptr;
518 StatementMachine stm;
520 LineNumberTableFlags flags;
521 GPtrArray *il_offset_array, *line_number_array, *source_file_array, *hidden_array;
522 gboolean has_column_info, has_end_info;
523 MonoSymSeqPoint *sps;
525 if (source_file_list)
526 *source_file_list = NULL;
532 *source_files = NULL;
536 if ((symfile = minfo->handle->symfile) == NULL)
539 flags = method_get_lnt_flags (minfo);
540 has_column_info = (flags & LNT_FLAG_HAS_COLUMN_INFO) > 0;
541 has_end_info = (flags & LNT_FLAG_HAS_END_INFO) > 0;
543 il_offset_array = g_ptr_array_new ();
544 line_number_array = g_ptr_array_new ();
545 source_file_array = g_ptr_array_new ();
546 hidden_array = g_ptr_array_new();
548 stm.line_base = read32 (&symfile->offset_table->_line_number_table_line_base);
549 stm.line_range = read32 (&symfile->offset_table->_line_number_table_line_range);
550 stm.opcode_base = (uint8_t) read32 (&symfile->offset_table->_line_number_table_opcode_base);
551 stm.max_address_incr = (255 - stm.opcode_base) / stm.line_range;
553 mono_debugger_lock ();
555 ptr = symfile->raw_contents + minfo->lnt_offset;
557 stm.symfile = symfile;
558 stm.offset = stm.last_offset = 0;
564 stm.is_hidden = FALSE;
567 uint8_t opcode = *ptr++;
570 uint8_t size = *ptr++;
571 const unsigned char *end_ptr = ptr + size;
575 if (opcode == DW_LNE_end_sequence) {
576 if (il_offset_array->len == 0)
580 } else if (opcode == DW_LNE_MONO_negate_is_hidden) {
581 stm.is_hidden = !stm.is_hidden;
582 } else if ((opcode >= DW_LNE_MONO__extensions_start) &&
583 (opcode <= DW_LNE_MONO__extensions_end)) {
584 ; // reserved for future extensions
586 g_warning ("Unknown extended opcode %x in LNT", opcode);
591 } else if (opcode < stm.opcode_base) {
594 add_line (&stm, il_offset_array, line_number_array, source_file_array, hidden_array);
596 case DW_LNS_advance_pc:
597 stm.offset += read_leb128 (ptr, &ptr);
599 case DW_LNS_advance_line:
600 stm.line += read_leb128 (ptr, &ptr);
602 case DW_LNS_set_file:
603 stm.file = read_leb128 (ptr, &ptr);
605 case DW_LNS_const_add_pc:
606 stm.offset += stm.max_address_incr;
609 g_warning ("Unknown standard opcode %x in LNT", opcode);
610 g_assert_not_reached ();
613 opcode -= stm.opcode_base;
615 stm.offset += opcode / stm.line_range;
616 stm.line += stm.line_base + (opcode % stm.line_range);
618 add_line (&stm, il_offset_array, line_number_array, source_file_array, hidden_array);
622 if (!stm.file && stm.first_file)
623 stm.file = stm.first_file;
625 if (stm.file && source_file) {
626 int offset = read32(&(stm.symfile->offset_table->_source_table_offset)) +
627 (stm.file - 1) * sizeof (MonoSymbolFileSourceEntry);
628 MonoSymbolFileSourceEntry *se = (MonoSymbolFileSourceEntry *)
629 (stm.symfile->raw_contents + offset);
632 *source_file = read_string (stm.symfile->raw_contents + read32(&(se->_data_offset)), NULL);
635 if (source_file_list) {
636 int file, last_file = 0;
638 *source_file_list = g_ptr_array_new ();
640 *source_files = (int *)g_malloc (il_offset_array->len * sizeof (int));
642 for (i = 0; i < il_offset_array->len; ++i) {
643 file = GPOINTER_TO_UINT (g_ptr_array_index (source_file_array, i));
644 if (file && file != last_file) {
645 MonoDebugSourceInfo *info = get_source_info (symfile, file);
647 g_ptr_array_add (*source_file_list, info);
651 (*source_files) [i] = (*source_file_list)->len - 1;
656 g_assert (seq_points);
658 n = il_offset_array->len;
659 for (i = 0; i < il_offset_array->len; i++) {
660 if (GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
666 *seq_points = sps = g_new0 (MonoSymSeqPoint, n);
668 for (i = 0; i < il_offset_array->len; ++i) {
669 MonoSymSeqPoint *sp = &(sps [j]);
670 if (!GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
671 sp->il_offset = GPOINTER_TO_UINT (g_ptr_array_index (il_offset_array, i));
672 sp->line = GPOINTER_TO_UINT (g_ptr_array_index (line_number_array, i));
680 if (has_column_info) {
682 for (i = 0; i < il_offset_array->len; ++i) {
683 MonoSymSeqPoint *sp = &(sps [j]);
684 int column = read_leb128 (ptr, &ptr);
685 if (!GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
694 for (i = 0; i < il_offset_array->len; ++i) {
695 MonoSymSeqPoint *sp = &(sps [j]);
696 int end_row, end_column = -1;
698 end_row = read_leb128 (ptr, &ptr);
699 if (end_row != 0xffffff) {
700 end_row += GPOINTER_TO_UINT (g_ptr_array_index (line_number_array, i));
701 end_column = read_leb128 (ptr, &ptr);
702 if (!GPOINTER_TO_UINT (g_ptr_array_index (hidden_array, i))) {
703 sp->end_line = end_row;
704 sp->end_column = end_column;
712 g_ptr_array_free (il_offset_array, TRUE);
713 g_ptr_array_free (line_number_array, TRUE);
714 g_ptr_array_free (hidden_array, TRUE);
716 mono_debugger_unlock ();
721 compare_method (const void *key, const void *object)
723 uint32_t token = GPOINTER_TO_UINT (key);
724 MonoSymbolFileMethodEntry *me = (MonoSymbolFileMethodEntry*)object;
726 return token - read32(&(me->_token));
729 MonoDebugMethodInfo *
730 mono_debug_symfile_lookup_method (MonoDebugHandle *handle, MonoMethod *method)
732 MonoSymbolFileMethodEntry *first_ie, *ie;
733 MonoDebugMethodInfo *minfo;
734 MonoSymbolFile *symfile = handle->symfile;
736 if (!symfile->method_hash)
739 if (handle->image != mono_class_get_image (mono_method_get_class (method)))
742 mono_debugger_lock ();
744 minfo = (MonoDebugMethodInfo *)g_hash_table_lookup (symfile->method_hash, method);
746 mono_debugger_unlock ();
750 first_ie = (MonoSymbolFileMethodEntry *)
751 (symfile->raw_contents + read32(&(symfile->offset_table->_method_table_offset)));
753 ie = (MonoSymbolFileMethodEntry *)mono_binary_search (GUINT_TO_POINTER (mono_method_get_token (method)), first_ie,
754 read32(&(symfile->offset_table->_method_count)),
755 sizeof (MonoSymbolFileMethodEntry), compare_method);
758 mono_debugger_unlock ();
762 minfo = g_new0 (MonoDebugMethodInfo, 1);
763 minfo->index = (ie - first_ie) + 1;
764 minfo->method = method;
765 minfo->handle = handle;
767 minfo->data_offset = read32 (&(ie->_data_offset));
768 minfo->lnt_offset = read32 (&(ie->_line_number_table));
770 g_hash_table_insert (symfile->method_hash, method, minfo);
772 mono_debugger_unlock ();
777 * mono_debug_symfile_lookup_locals:
779 * Return information about the local variables of MINFO from the symbol file.
780 * Return NULL if no information can be found.
781 * The result should be freed using mono_debug_symfile_free_locals ().
784 mono_debug_symfile_lookup_locals (MonoDebugMethodInfo *minfo)
786 MonoSymbolFile *symfile = minfo->handle->symfile;
788 int i, len, locals_offset, num_locals, block_index;
789 int code_block_table_offset;
790 MonoDebugLocalsInfo *res;
795 p = symfile->raw_contents + minfo->data_offset;
797 /* compile_unit_index = */ read_leb128 (p, &p);
798 locals_offset = read_leb128 (p, &p);
799 /* namespace_id = */ read_leb128 (p, &p);
800 code_block_table_offset = read_leb128 (p, &p);
802 res = g_new0 (MonoDebugLocalsInfo, 1);
804 p = symfile->raw_contents + code_block_table_offset;
805 res->num_blocks = read_leb128 (p, &p);
806 res->code_blocks = g_new0 (MonoDebugCodeBlock, res->num_blocks);
807 for (i = 0; i < res->num_blocks; ++i) {
808 res->code_blocks [i].type = read_leb128 (p, &p);
809 res->code_blocks [i].parent = read_leb128 (p, &p);
810 res->code_blocks [i].start_offset = read_leb128 (p, &p);
811 res->code_blocks [i].end_offset = read_leb128 (p, &p);
814 p = symfile->raw_contents + locals_offset;
815 num_locals = read_leb128 (p, &p);
817 res->num_locals = num_locals;
818 res->locals = g_new0 (MonoDebugLocalVar, num_locals);
820 for (i = 0; i < num_locals; ++i) {
821 res->locals [i].index = read_leb128 (p, &p);
822 len = read_leb128 (p, &p);
823 res->locals [i].name = (char *)g_malloc (len + 1);
824 memcpy (res->locals [i].name, p, len);
825 res->locals [i].name [len] = '\0';
827 block_index = read_leb128 (p, &p);
828 if (block_index >= 1 && block_index <= res->num_blocks)
829 res->locals [i].block = &res->code_blocks [block_index - 1];
835 #else /* DISABLE_MDB */
838 mono_debug_open_mono_symbols (MonoDebugHandle *handle, const uint8_t *raw_contents,
839 int size, gboolean in_the_debugger)
845 mono_debug_close_mono_symbol_file (MonoSymbolFile *symfile)
850 mono_debug_symfile_is_loaded (MonoSymbolFile *symfile)
855 MonoDebugMethodInfo *
856 mono_debug_symfile_lookup_method (MonoDebugHandle *handle, MonoMethod *method)
862 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)
864 g_assert_not_reached ();
867 MonoDebugSourceLocation *
868 mono_debug_symfile_lookup_location (MonoDebugMethodInfo *minfo, uint32_t offset)
874 mono_debug_symfile_lookup_locals (MonoDebugMethodInfo *minfo)
880 mono_debug_symfile_free_location (MonoDebugSourceLocation *location)