aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorRupesh Potharla <Rupesh.Potharla@amd.com>2022-09-14 10:27:38 +0100
committerNick Clifton <nickc@redhat.com>2022-09-14 10:27:38 +0100
commite959744eca88a4d145f39d5fbf4ab095af0f16b4 (patch)
tree275ba9eb04742c91c1e09ad4e15ae98a69f6291d /binutils/testsuite
parent8d783d5e1d60ec951368ceaf7f4bb8c241e4d3ee (diff)
downloadgdb-e959744eca88a4d145f39d5fbf4ab095af0f16b4.zip
gdb-e959744eca88a4d145f39d5fbf4ab095af0f16b4.tar.gz
gdb-e959744eca88a4d145f39d5fbf4ab095af0f16b4.tar.bz2
Binutils: Readelf testcase failing with clang
* testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend regexps to allow for output genreated by the Clang compiler.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/binutils-all/readelf.exp7
1 files changed, 4 insertions, 3 deletions
diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp
index 0f7a1f3..210ed83 100644
--- a/binutils/testsuite/binutils-all/readelf.exp
+++ b/binutils/testsuite/binutils-all/readelf.exp
@@ -188,12 +188,13 @@ proc readelf_wi_test {} {
".*DW_TAG_compile_unit.*"
".*DW_TAG_subprogram.*"
".*DW_TAG_base_type.*"
- ".*DW_AT_producer.*(GNU C|indirect string).*"
+ ".*DW_AT_producer.*(GNU C|indirect string|indexed string).*"
".*DW_AT_language.*(ANSI C|C11).*"
- ".*DW_AT_name.*(testprog.c|indirect string).*"
+ ".*DW_AT_name.*(testprog.c|indirect string|indexed string).*"
".*DW_AT_name.*fn.*"
+ ".*DW_AT_name.*(main|indirect string|indexed string).*"
+ ".*(DW_OP_addr: 0|DW_OP_addrx <0>).*"
".*DW_AT_name.*(main|indirect string).*"
- ".*\(DW_OP_addr: 0\).*"
}
# The MSP430 in LARGE mode does not generate a DW_OP_addr.