c++filt is always named cxxfilt in a build directory, but in a install
directory it would be named either cxxfilt or c++filt (depending on
the host). Handle this last case in testsuite.
binutils/ChangeLog:
* testsuite/config/default.exp (CXXFILE): if cxxfilt not found,
try c++filt.
set DLLTOOL [findfile $base_dir/dlltool]
}
if ![info exists CXXFILT] then {
- set CXXFILT [findfile $base_dir/cxxfilt]
+ set CXXFILT [findfile $base_dir/cxxfilt $base_dir/cxxfilt [which [transform cxxfilt]]]
+ if {$CXXFILT == 0} then {
+ set CXXFILT [transform c++filt]
+ }
}
if ![info exists CXXFILTFLAGS] then {
set CXXFILTFLAGS ""