[gdb/testsuite] Fix .debug_aranges in gdb.dwarf2/fission-loclists.S
authorTom de Vries <tdevries@suse.de>
Thu, 4 Aug 2022 17:56:06 +0000 (19:56 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 4 Aug 2022 17:56:06 +0000 (19:56 +0200)
When running test-case gdb.dwarf2/fission-loclists.exp, I noticed:
...
warning: Section .debug_aranges in fission-loclists has duplicate \
  debug_info_offset 0x8f, ignoring .debug_aranges.^M
...

Fix this by removing the duplicate .debug_aranges entry.

Tested on x86_64-linux.

gdb/testsuite/gdb.dwarf2/fission-loclists.S

index 012b2d7ac7dc79abd5b6bb8e2347498dc00b0c4c..cf12ab3b04cc672d13028c40946ff90e9f926087 100644 (file)
@@ -523,20 +523,6 @@ main:
        .quad   .LFE1-.LFB1     # Length
        .quad   0
        .quad   0
-       .section        .debug_aranges,"",@progbits
-       .4byte  0x3c    # Length of Address Ranges Info
-       .value  0x2     # DWARF Version
-       .4byte  .Lskeleton_debug_info0  # Offset of Compilation Unit Info
-       .byte   0x8     # Size of Address
-       .byte   0       # Size of Segment Descriptor
-       .value  0       # Pad to 16 byte boundary
-       .value  0
-       .8byte  .Ltext0 # Address
-       .8byte  .Letext0-.Ltext0        # Length
-       .8byte  .LFB1   # Address
-       .8byte  .LFE1-.LFB1     # Length
-       .8byte  0
-       .8byte  0
        .section        .debug_ranges,"",@progbits
 .Ldebug_ranges0:
        .8byte  .Ltext0 - .Ltext0       # Offset 0