aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/fission-reread.S
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-20 22:43:28 +0000
committerDoug Evans <dje@google.com>2013-09-20 22:43:28 +0000
commit6b4646ced5a71ad6ea7297c97d2df08b8357ab9b (patch)
tree31557ca7c90154df33f10152c1cccdd05d81c885 /gdb/testsuite/gdb.dwarf2/fission-reread.S
parent4fa7d390970c4e558fc42b8d5ff4d42b60240db4 (diff)
downloadgdb-6b4646ced5a71ad6ea7297c97d2df08b8357ab9b.zip
gdb-6b4646ced5a71ad6ea7297c97d2df08b8357ab9b.tar.gz
gdb-6b4646ced5a71ad6ea7297c97d2df08b8357ab9b.tar.bz2
* lib/dwarf.exp (build_executable_from_fission_assembler): New proc.
* gdb.dwarf2/fission-base.S: Update. Split out .dwo into separate file. * gdb.dwarf2/fission-loclists.S: Ditto. * gdb.dwarf2/fission-reread.S: Ditto. * gdb.dwarf2/fission-base.exp: Skip of remote host. Compile with build_executable_from_fission_assembler. * gdb.dwarf2/fission-loclists.exp: Ditto. * gdb.dwarf2/fission-reread.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/fission-reread.S')
-rw-r--r--gdb/testsuite/gdb.dwarf2/fission-reread.S53
1 files changed, 23 insertions, 30 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.S b/gdb/testsuite/gdb.dwarf2/fission-reread.S
index e566cc6..8082607 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-reread.S
+++ b/gdb/testsuite/gdb.dwarf2/fission-reread.S
@@ -100,12 +100,12 @@ main:
.byte 0x4 /* DW_AT_byte_size */
.byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */
.byte 0x1 /* DW_AT_decl_line */
- .4byte .Ltu_int /* DW_AT_sibling */
+ .4byte .Ltu_int - .Ltu_start_dwo /* DW_AT_sibling */
.uleb128 0x3 /* (DIE (0x31) DW_TAG_member) */
.ascii "bar\0" /* DW_AT_name */
.byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */
.byte 0x4 /* DW_AT_decl_line */
- .4byte .Ltu_int /* DW_AT_type */
+ .4byte .Ltu_int - .Ltu_start_dwo /* DW_AT_type */
.byte 0 /* DW_AT_data_member_location */
.byte 0x1 /* DW_AT_accessibility */
.byte 0 /* end of children of DIE 0x25 */
@@ -134,9 +134,7 @@ main:
.4byte 0 /* Offset to Type DIE */
.uleb128 0x2 /* (DIE (0) DW_TAG_type_unit) */
.ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */
- /* Normally dwo_name would be "fission-reread.dwo".
- Simplification: Leave the DWO contents in the executable. */
- .ascii "fission-reread\0" /* DW_AT_GNU_dwo_name */
+ .ascii "gdb.dwarf2/fission-reread.dwo\0" /* DW_AT_GNU_dwo_name */
.4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */
.4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */
.4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */
@@ -153,14 +151,14 @@ main:
.byte 0x4 /* DW_AT_language */
.ascii "gdb.dwarf2/fission-reread.cc\0" /* DW_AT_name */
.ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */
- .byte 0 /* DW_AT_GNU_dwo_id */
- .byte 0
- .byte 0
- .byte 0
- .byte 0
- .byte 0
- .byte 0
- .byte 0
+ .byte 1 /* DW_AT_GNU_dwo_id */
+ .byte 2
+ .byte 3
+ .byte 4
+ .byte 5
+ .byte 6
+ .byte 7
+ .byte 8
.Lcu_int:
.uleb128 0x4 /* (DIE (0x7f) DW_TAG_base_type) */
.byte 0x4 /* DW_AT_byte_size */
@@ -171,7 +169,7 @@ main:
.ascii "main\0" /* DW_AT_name */
.byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */
.byte 0xa /* DW_AT_decl_line */
- .4byte .Lcu_int /* DW_AT_type */
+ .4byte .Lcu_int - .Lcu_start_dwo /* DW_AT_type */
.uleb128 0 /* DW_AT_low_pc */
.4byte .LFE0-.LFB0 /* DW_AT_high_pc */
.uleb128 0x1 /* DW_AT_frame_base */
@@ -207,23 +205,18 @@ main:
.4byte .Letext0-.Ltext0 /* DW_AT_high_pc */
.4byte .Ldebug_line0 /* DW_AT_stmt_list */
.ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */
- /* Normally dwo_name would be "fission-reread.dwo".
- Simplification: Leave the DWO contents in the executable.
- "gdb.dwarf2/" is included so that gdb can load the file without
- having to set "debug-file-directory". This is useful when
- testing with cc-with-tweaks.sh -i. */
- .ascii "gdb.dwarf2/fission-reread\0" /* DW_AT_GNU_dwo_name */
+ .ascii "gdb.dwarf2/fission-reread.dwo\0" /* DW_AT_GNU_dwo_name */
.4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */
.4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */
.4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */
- .byte 0 /* DW_AT_GNU_dwo_id */
- .byte 0
- .byte 0
- .byte 0
- .byte 0
- .byte 0
- .byte 0
- .byte 0
+ .byte 1 /* DW_AT_GNU_dwo_id */
+ .byte 2
+ .byte 3
+ .byte 4
+ .byte 5
+ .byte 6
+ .byte 7
+ .byte 8
.Lcu_end:
.section .debug_abbrev
@@ -411,10 +404,10 @@ main:
.ascii "foo\0" /* external name */
.4byte 0
.section .debug_aranges
- .4byte 0x2c /* Length of Address Ranges Info */
+ .4byte 0x1c /* Length of Address Ranges Info */
.2byte 0x2 /* DWARF Version */
.4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */
- .byte 0x8 /* Size of Address */
+ .byte 0x4 /* Size of Address */
.byte 0 /* Size of Segment Descriptor */
.2byte 0 /* Pad to 16 byte boundary */
.2byte 0