]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: Improve detection of bug gdb/24541
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 16 Jun 2019 15:17:59 +0000 (16:17 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 16 Jun 2019 15:27:14 +0000 (16:27 +0100)
In bug gdb/24686 a testsuite failure was reported, this failure was
actually just another instance of bug gdb/24541, however, due to the
non-deterministic nature of bug gdb/24541 the testsuite pattern that
was intended to catch this bug failed.

This commit adds a second pattern to help detect gdb/24541, which
should change the FAIL reported in gdb/24686 into a KFAIL.

gdb/testsuite/ChangeLog:

PR gdb/24686
* gdb.mi/mi-catch-cpp-exceptions.exp: Add an extra pattern to
improve detection of bug gdb/24541.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp

index e486dffed734904c3f9b0e7b37b89e74f4718665..543865765a2ddd7d0258c4b9ab0aa7721d05c2d7 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       PR gdb/24686
+       * gdb.mi/mi-catch-cpp-exceptions.exp: Add an extra pattern to
+       improve detection of bug gdb/24541.
+
 2019-06-16  Simon Marchi  <simon.marchi@polymtl.ca>
 
        PR gdb/24669
index b5dfbe68c1ac45b0b0e59aa743be069beaa4d64f..fa5b11e3e58daf2cd2bc05550782e6cfaf6f6cc7 100644 (file)
@@ -141,6 +141,9 @@ with_test_prefix "all with invalid regexp" {
        -re "could not find minimal symbol for typeinfo address.*$mi_gdb_prompt$" {
            kfail "gdb/24541" "${testname}"
        }
+       -re "\\*stopped,bkptno=\"$decimal\",reason=\"breakpoint-hit\",disp=\"keep\".*func=\"__cxa_throw\".*$mi_gdb_prompt$" {
+           kfail "gdb/24541" "${testname}"
+       }
        -re "\\*stopped,reason=\"breakpoint-hit\".*func=\"main\".*line=\"${main_lineno}\".*$mi_gdb_prompt$" {
            pass "${testname}"
        }