This is a relatively simple fix.

Replace line 67 with this line according to your architecture:

x86 (32bit):
            tools=`find /usr/lib/valgrind/*-x86-linux -executable -type f -exec 
basename {} -x86-linux \; | sed -e 's,\./,,g' | tr '\n' ' '`

x86_64 (64bit):
            tools=`find /usr/lib/valgrind/*-amd64-linux -executable -type f 
-exec basename {} -amd64-linux \; | sed -e 's,\./,,g' | tr '\n' ' '`

This will result:

$ valgrind --tool=
cachegrind    drd           exp-ptrcheck  lackey        memcheck
callgrind     exp-bbv       helgrind      massif        none

-- 
bash-completion looks up tools in wrong directory
https://bugs.launchpad.net/bugs/531730
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to