./mtr --client-gdb

followup for 339b905579

don't use $opt_gdb for --client-gdb
This commit is contained in:
Sergei Golubchik 2018-04-12 20:40:58 +02:00
parent 1f6bd88c24
commit 479fb6c1e9

View file

@ -5645,7 +5645,9 @@ sub gdb_arguments {
# Put $args into a single string
$input = $input ? "< $input" : "";
if ($type ne 'client' and $opt_valgrind_mysqld) {
if ($type eq 'client') {
mtr_tofile($gdb_init_file, "set args @$$args $input");
} elsif ($opt_valgrind_mysqld) {
my $v = $$exe;
my $vargs = [];
valgrind_arguments($vargs, \$v);