summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorSayantan Dutta <sayantan.dutta@oracle.com>2014-09-26 11:50:07 +0530
committerSayantan Dutta <sayantan.dutta@oracle.com>2014-09-26 11:50:07 +0530
commit68ea0ea13b6c5dfbbbadf114c354429f1f22e43f (patch)
tree763c4e8f19dab439c9f42de71601711e2d0bf29d /mysql-test/mysql-test-run.pl
parent5693b1e4a411cc1580b08c9fba32e13ddd4ce4cd (diff)
downloadmariadb-git-68ea0ea13b6c5dfbbbadf114c354429f1f22e43f.tar.gz
Bug #18964545 - ADD MTR SUPPORT FOR DEBUGGING WITH LLDB revert
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl51
1 files changed, 6 insertions, 45 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 472dc91ea69..7ddde593503 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -223,11 +223,8 @@ our %gprof_dirs;
our $glob_debugger= 0;
our $opt_gdb;
-our $opt_lldb;
our $opt_client_gdb;
-our $opt_client_lldb;
my $opt_boot_gdb;
-my $opt_boot_lldb;
our $opt_dbx;
our $opt_client_dbx;
my $opt_boot_dbx;
@@ -1088,13 +1085,10 @@ sub command_line_setup {
'debug-common' => \$opt_debug_common,
'debug-server' => \$opt_debug_server,
'gdb' => \$opt_gdb,
- 'lldb' => \$opt_lldb,
'client-gdb' => \$opt_client_gdb,
- 'client-lldb' => \$opt_client_lldb,
'manual-gdb' => \$opt_manual_gdb,
'manual-lldb' => \$opt_manual_lldb,
'boot-gdb' => \$opt_boot_gdb,
- 'boot-lldb' => \$opt_boot_lldb,
'manual-debug' => \$opt_manual_debug,
'ddd' => \$opt_ddd,
'client-ddd' => \$opt_client_ddd,
@@ -1524,13 +1518,6 @@ sub command_line_setup {
$opt_gdb= undef;
}
- if ($opt_lldb)
- {
- mtr_warning("Silently converting --lldb to --client-lldb in embedded mode");
- $opt_client_lldb= $opt_lldb;
- $opt_lldb= undef;
- }
-
if ($opt_ddd)
{
mtr_warning("Silently converting --ddd to --client-ddd in embedded mode");
@@ -1551,7 +1538,7 @@ sub command_line_setup {
$opt_debugger= undef;
}
- if ( $opt_gdb || $opt_ddd || $opt_lldb || $opt_manual_gdb || $opt_manual_lldb ||
+ if ( $opt_gdb || $opt_ddd || $opt_manual_gdb || $opt_manual_lldb ||
$opt_manual_ddd || $opt_manual_debug || $opt_debugger || $opt_dbx ||
$opt_manual_dbx)
{
@@ -1579,10 +1566,10 @@ sub command_line_setup {
# --------------------------------------------------------------------------
# Check debug related options
# --------------------------------------------------------------------------
- if ( $opt_gdb || $opt_client_gdb || $opt_lldb || $opt_client_lldb ||
- $opt_ddd || $opt_client_ddd || $opt_manual_gdb || $opt_manual_gdb ||
- $opt_manual_ddd || $opt_manual_debug || $opt_dbx || $opt_client_dbx ||
- $opt_manual_dbx || $opt_debugger || $opt_client_debugger )
+ if ( $opt_gdb || $opt_client_gdb || $opt_ddd || $opt_client_ddd ||
+ $opt_manual_gdb || $opt_manual_lldb || $opt_manual_ddd ||
+ $opt_manual_debug || $opt_dbx || $opt_client_dbx || $opt_manual_dbx ||
+ $opt_debugger || $opt_client_debugger )
{
# Indicate that we are using debugger
$glob_debugger= 1;
@@ -3341,10 +3328,6 @@ sub mysql_install_db {
gdb_arguments(\$args, \$exe_mysqld_bootstrap, $mysqld->name(),
$bootstrap_sql_file);
}
- if ($opt_boot_lldb) {
- lldb_arguments(\$args, \$exe_mysqld_bootstrap, $mysqld->name(),
- $bootstrap_sql_file);
- }
if ($opt_boot_dbx) {
dbx_arguments(\$args, \$exe_mysqld_bootstrap, $mysqld->name(),
$bootstrap_sql_file);
@@ -5005,7 +4988,7 @@ sub mysqld_start ($$) {
{
gdb_arguments(\$args, \$exe, $mysqld->name());
}
- elsif ( $opt_lldb || $opt_manual_lldb )
+ elsif ( $opt_manual_lldb )
{
lldb_arguments(\$args, \$exe, $mysqld->name());
}
@@ -5676,10 +5659,6 @@ sub start_mysqltest ($) {
{
gdb_arguments(\$args, \$exe, "client");
}
- if ( $opt_client_lldb )
- {
- lldb_arguments(\$args, \$exe, "client");
- }
elsif ( $opt_client_ddd )
{
ddd_arguments(\$args, \$exe, "client");
@@ -5793,30 +5772,12 @@ sub lldb_arguments {
"b main\n" .
$runline);
- if ( $opt_manual_ddd )
- {
print "\nTo start lldb for $type, type in another window:\n";
print "cd $glob_mysql_test_dir && lldb -s $lldb_init_file $$exe\n";
# Indicate the exe should not be started
$$exe= undef;
return;
- }
-
- my $save_exe= $$exe;
- $$args= [];
- if ( $exe_libtool )
- {
- $$exe= $exe_libtool;
- mtr_add_arg($$args, "--mode=execute");
- mtr_add_arg($$args, "lldb");
- }
- else
- {
- $$exe= "lldb";
- }
- mtr_add_arg($$args, "--command=$lldb_init_file");
- mtr_add_arg($$args, "$save_exe");
}
#