From: Markus Metzger Date: Fri, 18 Feb 2022 11:16:33 +0000 (+0100) Subject: gdb, testsuite: extend gdb_test_multiple checks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44288716537103644dfdd0c72f03be737cafb768;p=binutils-gdb.git gdb, testsuite: extend gdb_test_multiple checks Check for warning: Corrupted shared library list and for Invalid cast. warning: Probes-based dynamic linker interface failed. Reverting to original interface. in gdb_test_multiple. --- diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index bfa9fec628e..36bcfacfdd0 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1188,6 +1188,14 @@ proc gdb_test_multiple { command message args } { } set result -1 } + -re "Corrupted shared library list.*$prompt_regexp" { + fail "$message (shared library list corrupted)" + set result -1 + } + -re "Invalid cast\.\r\nwarning: Probes-based dynamic linker interface failed.*$prompt_regexp" { + fail "$message (probes interface failure)" + set result -1 + } } append code $processed_code