diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2017-09-20 22:57:02 -0300 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2017-09-20 22:57:02 -0300 |
commit | 13b9f79a1904081d984a64037af6457c1e3ff7b6 (patch) | |
tree | 457aa00d528db5329413ba315b06d52c9a168861 | |
parent | 7e284574d1633e4f385ca923b200b2720ebadfbb (diff) | |
download | gdb-13b9f79a1904081d984a64037af6457c1e3ff7b6.zip gdb-13b9f79a1904081d984a64037af6457c1e3ff7b6.tar.gz gdb-13b9f79a1904081d984a64037af6457c1e3ff7b6.tar.bz2 |
LVU: adjust locview tests further
Compute offsets so as to use constants.
Skip message about relocations in locview-2.
XFAIL dw5 tests on nds32, relocations in loclist prevent dumping.
-rw-r--r-- | binutils/testsuite/binutils-all/locview-1.s | 2 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/locview-2.s | 42 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.exp | 2 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.locview-2 | 2 |
4 files changed, 24 insertions, 24 deletions
diff --git a/binutils/testsuite/binutils-all/locview-1.s b/binutils/testsuite/binutils-all/locview-1.s index bde98bd..d9d9b5b 100644 --- a/binutils/testsuite/binutils-all/locview-1.s +++ b/binutils/testsuite/binutils-all/locview-1.s @@ -65,7 +65,7 @@ .byte 0x1 /* DW_AT_decl_line */ .4byte .LIint-.LIbase /* DW_AT_type */ .4byte .LFB0 /* DW_AT_low_pc */ - .4byte .LFE0-.LFB0 /* DW_AT_high_pc */ + .4byte 1 /* .LFE0-.LFB0 */ /* DW_AT_high_pc */ .uleb128 0x1 /* DW_AT_frame_base */ .byte 0x9c /* DW_OP_call_frame_cfa */ /* DW_AT_GNU_all_call_sites */ diff --git a/binutils/testsuite/binutils-all/locview-2.s b/binutils/testsuite/binutils-all/locview-2.s index 141e30e..d9b1d58 100644 --- a/binutils/testsuite/binutils-all/locview-2.s +++ b/binutils/testsuite/binutils-all/locview-2.s @@ -66,7 +66,7 @@ .byte 0x1 /* DW_AT_decl_line */ .4byte .LIint-.LIbase /* DW_AT_type */ .4byte .LFB0 /* DW_AT_low_pc */ - .4byte .LFE0-.LFB0 /* DW_AT_high_pc */ + .4byte 1 /* .LFE0-.LFB0 */ /* DW_AT_high_pc */ .uleb128 0x1 /* DW_AT_frame_base */ .byte 0x9c /* DW_OP_call_frame_cfa */ /* DW_AT_call_all_calls */ @@ -239,14 +239,14 @@ .byte 0x6 /* DW_LLE_base_address (*.LLST0) */ .4byte .LVL0 /* Base address (*.LLST0) */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST0) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST0) */ - .uleb128 .LVL0-.LVL0 /* Location list end address (*.LLST0) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST0) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list end address (*.LLST0) */ .uleb128 0x2 /* Location expression size */ .byte 0x30 /* DW_OP_lit0 */ .byte 0x9f /* DW_OP_stack_value */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST0) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST0) */ - .uleb128 .LFE0-.LVL0 /* Location list end address (*.LLST0) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST0) */ + .uleb128 1 /* .LFE0-.LVL0 */ /* Location list end address (*.LLST0) */ .uleb128 0x2 /* Location expression size */ .byte 0x32 /* DW_OP_lit2 */ .byte 0x9f /* DW_OP_stack_value */ @@ -255,14 +255,14 @@ .byte 0x6 /* DW_LLE_base_address (*.LLST1) */ .4byte .LVL0 /* Base address (*.LLST1) */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST1) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST1) */ - .uleb128 .LVL0-.LVL0 /* Location list end address (*.LLST1) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST1) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list end address (*.LLST1) */ .uleb128 0x2 /* Location expression size */ .byte 0x31 /* DW_OP_lit1 */ .byte 0x9f /* DW_OP_stack_value */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST1) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST1) */ - .uleb128 .LFE0-.LVL0 /* Location list end address (*.LLST1) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST1) */ + .uleb128 1 /* .LFE0-.LVL0 */ /* Location list end address (*.LLST1) */ .uleb128 0x2 /* Location expression size */ .byte 0x33 /* DW_OP_lit3 */ .byte 0x9f /* DW_OP_stack_value */ @@ -283,20 +283,20 @@ .byte 0x6 /* DW_LLE_base_address (*.LLST2) */ .4byte .LVL0 /* Base address (*.LLST2) */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST2) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST2) */ - .uleb128 .LVL0-.LVL0 /* Location list end address (*.LLST2) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST2) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list end address (*.LLST2) */ .uleb128 0x2 /* Location expression size */ .byte 0x34 /* DW_OP_lit4 */ .byte 0x9f /* DW_OP_stack_value */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST2) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST2) */ - .uleb128 .LVL0-.LVL0 /* Location list end address (*.LLST2) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST2) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list end address (*.LLST2) */ .uleb128 0x2 /* Location expression size */ .byte 0x35 /* DW_OP_lit5 */ .byte 0x9f /* DW_OP_stack_value */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST2) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST2) */ - .uleb128 .LFE0-.LVL0 /* Location list end address (*.LLST2) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST2) */ + .uleb128 1 /* .LFE0-.LVL0 */ /* Location list end address (*.LLST2) */ .uleb128 0x2 /* Location expression size */ .byte 0x36 /* DW_OP_lit6 */ .byte 0x9f /* DW_OP_stack_value */ @@ -308,8 +308,8 @@ .uleb128 0x6 /* View list begin (*.LLST3) */ .uleb128 0x7 /* View list end (*.LVUS3) */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST3) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST3) */ - .uleb128 .LVL0-.LVL0 /* Location list end address (*.LLST3) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST3) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list end address (*.LLST3) */ .uleb128 0x2 /* Location expression size */ .byte 0x34 /* DW_OP_lit4 */ .byte 0x9f /* DW_OP_stack_value */ @@ -317,8 +317,8 @@ .uleb128 0x7 /* View list begin (*.LLST3) */ .uleb128 0x8 /* View list end (*.LVUS3) */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST3) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST3) */ - .uleb128 .LVL0-.LVL0 /* Location list end address (*.LLST3) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST3) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list end address (*.LLST3) */ .uleb128 0x2 /* Location expression size */ .byte 0x35 /* DW_OP_lit5 */ .byte 0x9f /* DW_OP_stack_value */ @@ -326,8 +326,8 @@ .uleb128 0x8 /* View list begin (*.LLST3) */ .uleb128 0x0 /* View list end (*.LVUS3) */ .byte 0x4 /* DW_LLE_offset_pair (*.LLST3) */ - .uleb128 .LVL0-.LVL0 /* Location list begin address (*.LLST3) */ - .uleb128 .LFE0-.LVL0 /* Location list end address (*.LLST3) */ + .uleb128 0 /* .LVL0-.LVL0 */ /* Location list begin address (*.LLST3) */ + .uleb128 1 /* .LFE0-.LVL0 */ /* Location list end address (*.LLST3) */ .uleb128 0x2 /* Location expression size */ .byte 0x36 /* DW_OP_lit6 */ .byte 0x9f /* DW_OP_stack_value */ diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp index 5fbe839..3cbc1d2 100644 --- a/binutils/testsuite/binutils-all/readelf.exp +++ b/binutils/testsuite/binutils-all/readelf.exp @@ -452,5 +452,5 @@ if ![istarget "riscv*-*-*"] then { readelf_find_size $tempfile # Make sure that readelf can decode the contents. - readelf_test -wiaoRlL $tempfile dw5.W {} + readelf_test -wiaoRlL $tempfile dw5.W { nds32*-elf } } diff --git a/binutils/testsuite/binutils-all/readelf.locview-2 b/binutils/testsuite/binutils-all/readelf.locview-2 index 20437f2..f064ad7 100644 --- a/binutils/testsuite/binutils-all/readelf.locview-2 +++ b/binutils/testsuite/binutils-all/readelf.locview-2 @@ -1,5 +1,5 @@ Contents of the .*ebug_loclists section: - +#... Offset Begin End Expression 0000000c v0000002 v0000004 location view pair |