Merge pull request #498 from Unroll-Me/master
[mono.git] / mono / mini / dwarfwriter.c
index 23b422919a9b92bf6706161e3f880ec782dd3c70..60bbfd4e93bce7292765e125a175fd33f8c2582e 100644 (file)
@@ -449,7 +449,9 @@ static int compile_unit_attr [] = {
 
 static int subprogram_attr [] = {
        DW_AT_name         , DW_FORM_string,
+#ifndef TARGET_IOS
        DW_AT_description  , DW_FORM_string,
+#endif
     DW_AT_low_pc       , DW_FORM_addr,
     DW_AT_high_pc      , DW_FORM_addr,
        DW_AT_frame_base   , DW_FORM_block1
@@ -457,7 +459,9 @@ static int subprogram_attr [] = {
 
 static int tramp_subprogram_attr [] = {
        DW_AT_name         , DW_FORM_string,
+#ifndef TARGET_IOS
        DW_AT_description  , DW_FORM_string,
+#endif
     DW_AT_low_pc       , DW_FORM_addr,
     DW_AT_high_pc      , DW_FORM_addr,
 };
@@ -762,7 +766,7 @@ emit_all_line_number_info (MonoDwarfWriter *w)
 
        g_assert (w->collect_line_info);
 
-       add_line_number_file_name (w, "xdb.il", 0, 0);
+       add_line_number_file_name (w, "<unknown>", 0, 0);
 
        /* Collect files */
        // FIXME: Revert list
@@ -1909,7 +1913,9 @@ mono_dwarf_writer_emit_method (MonoDwarfWriter *w, MonoCompile *cfg, MonoMethod
        emit_uleb128 (w, ABBREV_SUBPROGRAM);
        name = mono_method_full_name (method, FALSE);
        emit_string (w, name);
+#ifndef TARGET_IOS
        emit_string (w, name);
+#endif
        g_free (name);
        if (start_symbol) {
                emit_pointer_unaligned (w, start_symbol);