diff --git a/tools/gdb_mutex_contention.pl b/tools/gdb_mutex_contention.pl index bb6c1647416..d58e28b9909 100755 --- a/tools/gdb_mutex_contention.pl +++ b/tools/gdb_mutex_contention.pl @@ -60,6 +60,7 @@ () # Grab the binary from the running pid my $binary = `ps --pid $pid -o command -h`; + $binary = (split(' ', $binary))[0]; chomp $binary; # Print out what we are going to run gdb on