Commit c5e5b5e1 authored by unknown's avatar unknown

Bug #26792 Add DBX debugger support to mysql-test-run.pl

 - Add --debugger=dbx
 - Fix --debugger=devenv, --debugger=DevEnv and --debugger=/path/devenv


mysql-test/mysql-test-run.pl:
  Add support for --debugger=dbx to mysql-test-run.pl
  Fix case senitive match for vc, vcexpress or deven
  Make it possible to use full path to debugger for
  --debugger=/path/vcexpress
parent 115a299f
...@@ -4745,9 +4745,7 @@ sub debugger_arguments { ...@@ -4745,9 +4745,7 @@ sub debugger_arguments {
my $exe= shift; my $exe= shift;
my $debugger= $opt_debugger || $opt_client_debugger; my $debugger= $opt_debugger || $opt_client_debugger;
# FIXME Need to change the below "eq"'s to if ( $debugger =~ /vcexpress|vc|devenv/ )
# "case unsensitive string contains"
if ( $debugger eq "vcexpress" or $debugger eq "vc")
{ {
# vc[express] /debugexe exe arg1 .. argn # vc[express] /debugexe exe arg1 .. argn
...@@ -4755,22 +4753,38 @@ sub debugger_arguments { ...@@ -4755,22 +4753,38 @@ sub debugger_arguments {
unshift(@$$args, "/debugexe"); unshift(@$$args, "/debugexe");
unshift(@$$args, "$$exe"); unshift(@$$args, "$$exe");
# Set exe to debuggername
$$exe= $debugger;
} }
elsif ( $debugger eq "windbg" ) elsif ( $debugger =~ /windbg/ )
{ {
# windbg exe arg1 .. argn # windbg exe arg1 .. argn
# Add name of the exe before args # Add name of the exe before args
unshift(@$$args, "$$exe"); unshift(@$$args, "$$exe");
# Set exe to debuggername
$$exe= $debugger;
}
elsif ( $debugger eq "dbx" )
{
# xterm -e dbx -r exe arg1 .. argn
unshift(@$$args, $$exe);
unshift(@$$args, "-r");
unshift(@$$args, $debugger);
unshift(@$$args, "-e");
$$exe= "xterm";
} }
else else
{ {
mtr_error("Unknown argument \"$debugger\" passed to --debugger"); mtr_error("Unknown argument \"$debugger\" passed to --debugger");
} }
# Set exe to debuggername
$$exe= $debugger;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment