]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: fix gdb.python/py-framefilter-invalidarg.exp with clang
authorGuinevere Larsen <blarsen@redhat.com>
Wed, 31 Jul 2024 14:13:25 +0000 (11:13 -0300)
committerGuinevere Larsen <blarsen@redhat.com>
Fri, 2 Aug 2024 12:06:26 +0000 (09:06 -0300)
commitc8cfd51787ef7e224e274224a304e461754324d8
tree1412e4b11694ea259a2b84411f34e83dd18fa93d
parentc6a0e02d08b8a30c76bc3f2fea7e772714f748e6
gdb/testsuite: fix gdb.python/py-framefilter-invalidarg.exp with clang

The final test of gdb.python/py-framefilter-invalidarg.exp expected that
the the backtrace only printed the source file name. However, when using
clang, gdb will always print the full path to the file, which would
cause the test to fail. This commit introduces a regexp that optionally
matches paths, preprended to the file name, which fixes the clang
failure without introducing gcc failures.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp