2009-05-26 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Tue, 26 May 2009 14:24:21 +0000 (14:24 -0000)
committerZoltan Varga <vargaz@gmail.com>
Tue, 26 May 2009 14:24:21 +0000 (14:24 -0000)
* aot-compiler.c (emit_method_code): Always write out C style symbols for
methods.

svn path=/trunk/mono/; revision=134759

mono/mini/ChangeLog
mono/mini/aot-compiler.c

index f32b55984985f02d0810d1a0df89be20c1049ba6..5e25ddd918422d6563a2bedad633e1cf43f6ad69 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-26  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c (emit_method_code): Always write out C style symbols for
+       methods.
+
 2009-05-25 Rodrigo Kumpera  <rkumpera@novell.com>
 
        * mini-x86.c (mono_arch_output_basic_block): Fix the precision of
index 9745896af809c9c9e5294c6ebc6aaedf966cb6ad..b1b5b56770a206ba9b92341d4da9d6b2e205bd50 100644 (file)
@@ -2062,10 +2062,16 @@ emit_method_code (MonoAotCompile *acfg, MonoCompile *cfg)
        emit_alignment (acfg, func_alignment);
        emit_label (acfg, symbol);
 
-       if (acfg->aot_opts.write_symbols && !acfg->aot_opts.nodebug) {
+       if (acfg->aot_opts.write_symbols) {
                char *name1, *name2, *cached;
                int i, j, len, count;
 
+               /* 
+                * Write a C style symbol for every method, this has two uses:
+                * - it works on platforms where the dwarf debugging info is not
+                *   yet supported.
+                * - it allows the setting of breakpoints of aot-ed methods.
+                */
                name1 = mono_method_full_name (method, TRUE);
                len = strlen (name1);
                name2 = malloc (len + 1);