X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fdwarfwriter.c;h=9f2c405b68360afdf129e789ed284a382f25fe3a;hb=HEAD;hp=ad25f58728ec9c6a3de38dd253f4e0cecdb92c78;hpb=dfac8517b91687f11479801fa0a2191585b1ad4c;p=mono.git diff --git a/mono/mini/dwarfwriter.c b/mono/mini/dwarfwriter.c index ad25f58728e..9f2c405b683 100644 --- a/mono/mini/dwarfwriter.c +++ b/mono/mini/dwarfwriter.c @@ -1,5 +1,6 @@ -/* - * dwarfwriter.c: Creation of DWARF debug information +/** + * \file + * Creation of DWARF debug information * * Author: * Zoltan Varga (vargaz@gmail.com) @@ -8,6 +9,7 @@ */ #include "config.h" +#include #if !defined(DISABLE_AOT) && !defined(DISABLE_JIT) #include "dwarfwriter.h" @@ -20,9 +22,7 @@ #endif #include -#include -#include -#include +#include #ifndef HOST_WIN32 #include @@ -1581,11 +1581,11 @@ emit_line_number_info (MonoDwarfWriter *w, MonoMethod *method, prev_il_offset = il_offset; - loc = mono_debug_symfile_lookup_location (minfo, il_offset); + loc = mono_debug_method_lookup_location (minfo, il_offset); if (!loc) continue; if (!loc->source_file) { - mono_debug_symfile_free_location (loc); + mono_debug_free_source_location (loc); continue; } @@ -1633,7 +1633,7 @@ emit_line_number_info (MonoDwarfWriter *w, MonoMethod *method, prev_native_offset = i; } - mono_debug_symfile_free_location (loc); + mono_debug_free_source_location (loc); first = FALSE; } @@ -1797,7 +1797,7 @@ mono_dwarf_writer_emit_method (MonoDwarfWriter *w, MonoCompile *cfg, MonoMethod minfo = mono_debug_lookup_method (method); if (minfo) - loc = mono_debug_symfile_lookup_location (minfo, 0); + loc = mono_debug_method_lookup_location (minfo, 0); /* Subprogram */ names = g_new0 (char *, sig->param_count); @@ -1818,7 +1818,7 @@ mono_dwarf_writer_emit_method (MonoDwarfWriter *w, MonoCompile *cfg, MonoMethod emit_uleb128 (w, file_index + 1); emit_uleb128 (w, loc->row); - mono_debug_symfile_free_location (loc); + mono_debug_free_source_location (loc); loc = NULL; } else { emit_uleb128 (w, 0); @@ -2002,4 +2002,9 @@ mono_dwarf_writer_emit_trampoline (MonoDwarfWriter *w, const char *tramp_name, c emit_fde (w, w->fde_index, start_symbol, end_symbol, code, code_size, unwind_info, FALSE); w->fde_index ++; } + +#else /* !defined(DISABLE_AOT) && !defined(DISABLE_JIT) */ + +MONO_EMPTY_SOURCE_FILE (dwarfwriter); + #endif /* End of: !defined(DISABLE_AOT) && !defined(DISABLE_JIT) */