gdb/testsuite/gdb.dwarf2: Replace @ with % for ARM compatability.
authorWill Newton <willnewton@sourceware.org>
Fri, 19 Jul 2013 10:01:26 +0000 (10:01 +0000)
committerWill Newton <willnewton@sourceware.org>
Fri, 19 Jul 2013 10:01:26 +0000 (10:01 +0000)
The ARM assembler recognises @ symbol as a comment marker and
therefore is unable to assemble some of gdb.dwarf2 testsuite tests.
This patch replaces all occurrences of @ symbol with % sign to allow
tests stay compatible with both ARM and x86 assembly. This patch has
been tested on x86_64 and ARMv7 targets.

gdb/testsuite/ChangeLog:

2013-07-19  Omair Javaid  <Omair.Javaid@linaro.org>

        * gdb.dwarf2/fission-reread.S: Replace @ sign with % sign to remove
        assembler errors on arm.
        * gdb.dwarf2/mac-fileno.S: Likewise.
        * gdb.dwarf2/member-ptr-forwardref.S: Likewise.
        * gdb.dwarf2/pr13961.S: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/fission-reread.S
gdb/testsuite/gdb.dwarf2/mac-fileno.S
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.S
gdb/testsuite/gdb.dwarf2/pr13961.S

index 0056b2a..e59abe0 100644 (file)
@@ -1,3 +1,11 @@
+2013-07-19  Omair Javaid  <Omair.Javaid@linaro.org>
+
+       * gdb.dwarf2/fission-reread.S: Replace @ sign with % sign to remove
+       assembler errors on arm.
+       * gdb.dwarf2/mac-fileno.S: Likewise.
+       * gdb.dwarf2/member-ptr-forwardref.S: Likewise.
+       * gdb.dwarf2/pr13961.S: Likewise.
+
 2013-07-19  Hui Zhu  <hui@codesourcery.com>
 
        PR gdb/15692
index 5e61008..c598824 100644 (file)
@@ -43,7 +43,7 @@
        .globl  baz
        .data   /* Previously this used .bss, but it's not portable.  */
        .align 4
-       .type   baz, @object
+       .type   baz, %object
        .size   baz, 4
 baz:
        .zero   4
@@ -51,7 +51,7 @@ baz:
        .text
 .Ltext0:
        .globl  main
-       .type   main, @function
+       .type   main, %function
 main:
 .LFB0:
        .file 1 "fission-reread.cc"
index 5f1f08a..0f2da7b 100644 (file)
@@ -200,7 +200,7 @@ func_cu1:
 
 .Lline1_end:
 
-       .section        .debug_macinfo,"",@progbits
+       .section        .debug_macinfo,"",%progbits
 .Ldebug_macinfo0:
        .byte   0x3     /* Start new file */
        .uleb128 0x0    /* Included from line number 0 */
index 14a44b1..304a736 100644 (file)
      } c;  */
 
        .file   "member-ptr-forwardref.cc"
-       .section        .debug_abbrev,"",@progbits
+       .section        .debug_abbrev,"",%progbits
 .Ldebug_abbrev0:
-       .section        .debug_info,"",@progbits
+       .section        .debug_info,"",%progbits
 .Ldebug_info0:
-       .section        .debug_line,"",@progbits
+       .section        .debug_line,"",%progbits
 .Ldebug_line0:
        .text
 .Ltext0:
 .globl fp
        .data
        .align 4
-       .type   fp, @object
+       .type   fp, %object
        .size   fp, 8
 fp:
        .zero   8
 .globl c
        .align 4
-       .type   c, @object
+       .type   c, %object
        .size   c, 8
 c:
        .zero   8
@@ -290,7 +290,7 @@ c:
        .byte   0x0
        .byte   0x0
        .byte   0x0
-       .section        .debug_pubnames,"",@progbits
+       .section        .debug_pubnames,"",%progbits
        .4byte  0x1b    /* Length of Public Names Info */
        .2byte  0x2     /* DWARF Version */
        .4byte  .Ldebug_info0   /* Offset of Compilation Unit Info */
@@ -300,7 +300,7 @@ c:
        .4byte  0x9c    /* DIE offset */
        .ascii "c\0"    /* external name */
        .4byte  0x0
-       .section        .debug_pubtypes,"",@progbits
+       .section        .debug_pubtypes,"",%progbits
        .4byte  0x1d    /* Length of Public Type Names Info */
        .2byte  0x2     /* DWARF Version */
        .4byte  .Ldebug_info0   /* Offset of Compilation Unit Info */
@@ -310,7 +310,7 @@ c:
        .4byte  0x6e    /* DIE offset */
        .ascii "C\0"    /* external name */
        .4byte  0x0
-       .section        .debug_str,"MS",@progbits,1
+       .section        .debug_str,"MS",%progbits,1
 .LASF5:
        .string "fp_t"
 .LASF2:
@@ -324,4 +324,4 @@ c:
 .LASF1:
        .string "__delta"
        .ident  "GCC: (GNU) 4.4.2 20091222 (Red Hat 4.4.2-20)"
-       .section        .note.GNU-stack,"",@progbits
+       .section        .note.GNU-stack,"",%progbits
index de66dbb..68c3134 100644 (file)
@@ -42,7 +42,7 @@
        .globl  baz
        .data   /* Previously this used .bss, but it's not portable.  */
        .align 4
-       .type   baz, @object
+       .type   baz, %object
        .size   baz, 4
 baz:
 #if 0
@@ -56,7 +56,7 @@ baz:
        .text
 .Ltext0:
        .globl  main
-       .type   main, @function
+       .type   main, %function
 main:
 .LFB0:
        .4byte 0
@@ -64,7 +64,7 @@ main:
        .size   main, .-main
 .Letext0:
 
-       .section        .debug_types,"",@progbits
+       .section        .debug_types,"",%progbits
 .Ldebug_types0:
        .4byte  .Ltu_end - .Ltu_start   /* Length of Compilation Unit Info */
 .Ltu_start:
@@ -121,7 +121,7 @@ main:
 
 .Ltu_end:
 
-       .section        .debug_info,"",@progbits
+       .section        .debug_info,"",%progbits
 .Ldebug_info0:
        .4byte  .Lcu_end - .Lcu_start   /* Length of Compilation Unit Info */
 .Lcu_start:
@@ -205,7 +205,7 @@ main:
 
 .Lcu_end:
 
-       .section        .debug_abbrev,"",@progbits
+       .section        .debug_abbrev,"",%progbits
 .Ldebug_abbrev0:
        .uleb128 0x1    /* (abbrev code) */
        .uleb128 0x41   /* (TAG: DW_TAG_type_unit) */
@@ -333,7 +333,7 @@ main:
 
        .byte   0
 
-       .section        .debug_aranges,"",@progbits
+       .section        .debug_aranges,"",%progbits
        .4byte  0x1c    /* Length of Address Ranges Info */
        .2byte  0x2     /* DWARF Version */
        .4byte  .Ldebug_info0   /* Offset of Compilation Unit Info */
@@ -346,10 +346,10 @@ main:
        .4byte  0
        .4byte  0
 
-       .section        .debug_line,"",@progbits
+       .section        .debug_line,"",%progbits
 .Ldebug_line0:
 
-       .section        .debug_str,"MS",@progbits,1
+       .section        .debug_str,"MS",%progbits,1
 .LASF0:
        .string "GNU C++ 4.6.3 20120306"
 .LASF2: