Index: gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.S |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S b/gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.S |
similarity index 83% |
copy from gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S |
copy to gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.S |
index 2577cd3965a8fdf40f43fa27648770404728498f..43793dbc7d9c0bdf74b1a21d31ce48cb565a800f 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.S |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2011-2012 Free Software Foundation, Inc. |
+ Copyright 2012 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -16,6 +16,7 @@ |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
.data |
+var: .4byte 1 |
.section .debug_info |
.Lcu1_begin: |
@@ -28,22 +29,22 @@ |
/* CU die */ |
.uleb128 1 /* Abbrev: DW_TAG_compile_unit */ |
- .ascii "dw2-var-zero-addr.c\0" /* DW_AT_name */ |
- .ascii "GNU C 4.3.2\0" /* DW_AT_producer */ |
- .byte 1 /* DW_AT_language (C) */ |
+ .ascii "file1.txt\0" /* DW_AT_name */ |
+ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ |
+ .byte 4 /* DW_LANG_C_plus_plus (C++) */ |
-.Ltype_uchar: |
+.Ltype_myint: |
.uleb128 2 /* Abbrev: DW_TAG_base_type */ |
- .ascii "int\0" /* DW_AT_name */ |
+ .ascii "myint\0" /* DW_AT_name */ |
.byte 4 /* DW_AT_byte_size */ |
.byte 5 /* DW_AT_encoding */ |
- .uleb128 3 /* Abbrev: DW_TAG_variable (location) */ |
- .ascii "var\0" /* DW_AT_name */ |
+ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ |
+ .ascii "_ZN12_GLOBAL__N_11vE\0" /* DW_AT_name = "(anonymous namespace)::v" */ |
.byte 2f - 1f /* DW_AT_location */ |
1: .byte 3 /* DW_OP_addr */ |
- .4byte 0 /* <addr> */ |
-2: .4byte .Ltype_uchar-.Lcu1_begin /* DW_AT_type */ |
+ .4byte var /* <addr> */ |
+2: .4byte .Ltype_myint-.Lcu1_begin /* DW_AT_type */ |
.byte 0 /* End of children of CU */ |
@@ -76,7 +77,7 @@ |
.byte 0x0 /* Terminator */ |
.byte 0x0 /* Terminator */ |
- .uleb128 3 /* Abbrev code (location) */ |
+ .uleb128 7 /* Abbrev code (location) */ |
.uleb128 0x34 /* DW_TAG_variable */ |
.byte 0 /* has_children */ |
.uleb128 0x3 /* DW_AT_name */ |