From 479fb6c1e9c04b8e98d9ad890e621c7270b8dfe3 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 12 Apr 2018 20:40:58 +0200 Subject: [PATCH] ./mtr --client-gdb followup for 339b9055791 don't use $opt_gdb for --client-gdb --- mysql-test/mysql-test-run.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 63f8f07a63a..1a00a7e694d 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -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);