mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 07:26:06 +00:00
[ELF][test] Fix CU address_size in some gdb-index tests
Revert 251640ab575634256de6d6fde5c5359fe21efe91 which fixed the wrong thing. While here, add `2>&1 | count 0` to assert no warning from lib/DebugInfo/DWARF.
This commit is contained in:
parent
045f07b7dc
commit
b96fc4860f
@ -40,7 +40,7 @@ foo:
|
||||
.long .Lcu_end0 - .Lcu_begin0 - 4
|
||||
.short 4 # DWARF version number
|
||||
.long 0 # Offset Into Abbrev. Section
|
||||
.byte 4 # Address Size
|
||||
.byte 8 # Address Size
|
||||
.Ldie0:
|
||||
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
||||
.quad .Lfunc_begin0 # DW_AT_low_pc
|
||||
@ -48,7 +48,6 @@ foo:
|
||||
.byte 2 # Abbrev [2] DW_TAG_subprogram
|
||||
.asciz "foo" # DW_AT_name
|
||||
.byte 0
|
||||
.byte 0
|
||||
.Lcu_end0:
|
||||
|
||||
.section .debug_gnu_pubnames,"",@progbits
|
||||
|
@ -1,7 +1,7 @@
|
||||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/gdb-index-multiple-cu-2.s -o %t1.o
|
||||
# RUN: ld.lld --gdb-index %t.o %t1.o -o %t
|
||||
# RUN: ld.lld --gdb-index %t.o %t1.o -o %t 2>&1 | count 0
|
||||
# RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s
|
||||
|
||||
# %t.o has 2 CUs while %t1 has 1, thus _start in %t1.o should have cuIndex 2.
|
||||
@ -22,7 +22,7 @@
|
||||
.long .Lcu_end0 - .Lcu_begin0 - 4
|
||||
.short 4 # DWARF version number
|
||||
.long 0 # Offset Into Abbrev. Section
|
||||
.byte 4 # Address Size
|
||||
.byte 8 # Address Size
|
||||
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
||||
.byte 0
|
||||
.Lcu_end0:
|
||||
@ -30,7 +30,7 @@
|
||||
.long .Lcu_end1 - .Lcu_begin1 - 4
|
||||
.short 4 # DWARF version number
|
||||
.long 0 # Offset Into Abbrev. Section
|
||||
.byte 4 # Address Size
|
||||
.byte 8 # Address Size
|
||||
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
||||
.byte 0
|
||||
.Lcu_end1:
|
||||
|
@ -1,6 +1,6 @@
|
||||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
||||
# RUN: ld.lld --gdb-index %t.o -o %t
|
||||
# RUN: ld.lld --gdb-index %t.o -o %t 2>&1 | count 0
|
||||
# RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s
|
||||
|
||||
# cuIndexAndAttrs of _start:
|
||||
@ -40,7 +40,7 @@ foo:
|
||||
.long .Lcu_end0 - .Lcu_begin0 - 4
|
||||
.short 4 # DWARF version number
|
||||
.long 0 # Offset Into Abbrev. Section
|
||||
.byte 4 # Address Size
|
||||
.byte 8 # Address Size
|
||||
.Ldie0:
|
||||
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
||||
.byte 2 # Abbrev [2] DW_TAG_subprogram
|
||||
@ -52,7 +52,7 @@ foo:
|
||||
.long .Lcu_end1 - .Lcu_begin1 - 4
|
||||
.short 4 # DWARF version number
|
||||
.long 0 # Offset Into Abbrev. Section
|
||||
.byte 4 # Address Size
|
||||
.byte 8 # Address Size
|
||||
.Ldie1:
|
||||
.byte 1 # Abbrev [1] DW_TAG_compile_unit
|
||||
.byte 2 # Abbrev [2] DW_TAG_subprogram
|
||||
|
Loading…
x
Reference in New Issue
Block a user