mirror of
https://github.com/MariaDB/server.git
synced 2025-07-20 10:24:14 +03:00
./mtr --gdb testname
Make --gdb to take an optional argument *only* if it's
written after '=', not after a space.
followup for 339b905579
This commit is contained in:
@ -1133,7 +1133,7 @@ sub command_line_setup {
|
||||
'debug' => \$opt_debug,
|
||||
'debug-common' => \$opt_debug_common,
|
||||
'debug-server' => \$opt_debug_server,
|
||||
'gdb:s' => sub { $opt_gdb = $_[1] || '#' },
|
||||
'gdb=s' => \$opt_gdb,
|
||||
'client-gdb' => \$opt_client_gdb,
|
||||
'manual-gdb' => \$opt_manual_gdb,
|
||||
'manual-lldb' => \$opt_manual_lldb,
|
||||
@ -1228,6 +1228,9 @@ sub command_line_setup {
|
||||
'skip-test-list=s' => \@opt_skip_test_list
|
||||
);
|
||||
|
||||
# fix options (that take an optional argument and *only* after = sign
|
||||
my %fixopt = ( '--gdb' => '--gdb=#' );
|
||||
@ARGV = map { $fixopt{$_} or $_ } @ARGV;
|
||||
GetOptions(%options) or usage("Can't read options");
|
||||
usage("") if $opt_usage;
|
||||
list_options(\%options) if $opt_list_options;
|
||||
|
Reference in New Issue
Block a user