MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:msvensson Date:March 5 2007 8:52am
Subject:bk commit into 4.1 tree (msvensson:1.2613) BUG#26792
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-03-05 09:52:40+01:00, msvensson@stripped +1 -0
  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@stripped, 2007-03-05 09:52:39+01:00, msvensson@stripped +20 -6
    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

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	pilot.blaudden
# Root:	/home/msvensson/mysql/mysql-4.1-maint

--- 1.177/mysql-test/mysql-test-run.pl	2007-03-01 18:31:09 +01:00
+++ 1.178/mysql-test/mysql-test-run.pl	2007-03-05 09:52:39 +01:00
@@ -4745,9 +4745,7 @@ sub debugger_arguments {
   my $exe=  shift;
   my $debugger= $opt_debugger || $opt_client_debugger;
 
-  # FIXME Need to change the below "eq"'s to
-  # "case unsensitive string contains"
-  if ( $debugger eq "vcexpress" or $debugger eq "vc")
+  if ( $debugger =~ /vcexpress|vc|devenv/ )
   {
     # vc[express] /debugexe exe arg1 .. argn
 
@@ -4755,22 +4753,38 @@ sub debugger_arguments {
     unshift(@$$args, "/debugexe");
     unshift(@$$args, "$$exe");
 
+    # Set exe to debuggername
+    $$exe= $debugger;
+
   }
-  elsif ( $debugger eq "windbg" )
+  elsif ( $debugger =~ /windbg/ )
   {
     # windbg exe arg1 .. argn
 
     # Add name of the exe before args
     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
   {
     mtr_error("Unknown argument \"$debugger\" passed to --debugger");
   }
 
-  # Set exe to debuggername
-  $$exe= $debugger;
 }
 
 
Thread
bk commit into 4.1 tree (msvensson:1.2613) BUG#26792msvensson5 Mar