#At file:///home/bm136801/my/ldebug-51/ based on revid:bjorn.munch@stripped
2952 Bjorn Munch 2010-11-29
Bug #58122 Using DBUG_EXECUTE_IF and normal DBUG printouts not compatible
Added option --debug-common which setd 'd' debug flags to the suggested list
modified:
mysql-test/mysql-test-run.pl
=== modified file 'mysql-test/mysql-test-run.pl'
--- a/mysql-test/mysql-test-run.pl 2010-11-05 14:26:38 +0000
+++ b/mysql-test/mysql-test-run.pl 2010-11-29 12:20:56 +0000
@@ -166,6 +166,8 @@ my $opt_cursor_protocol;
my $opt_view_protocol;
our $opt_debug;
+my $debug_d= "d";
+my $opt_debug_common;
our @opt_cases; # The test cases names in argv
our $opt_embedded_server;
@@ -912,8 +914,9 @@ sub command_line_setup {
'extern=s' => \%opts_extern, # Append to hash
# Debugging
- 'debug' => \$opt_debug,
- 'gdb' => \$opt_gdb,
+ 'debug' => \$opt_debug,
+ 'debug-common' => \$opt_debug_common,
+ 'gdb' => \$opt_gdb,
'client-gdb' => \$opt_client_gdb,
'manual-gdb' => \$opt_manual_gdb,
'manual-debug' => \$opt_manual_debug,
@@ -1465,6 +1468,12 @@ sub command_line_setup {
join(" ", @valgrind_args), "\"");
}
+ if ($opt_debug_common)
+ {
+ $opt_debug= 1;
+ $debug_d= "d,query,info,error,enter,exit";
+ }
+
mtr_report("Checking supported features...");
check_ndbcluster_support(\%mysqld_variables);
@@ -1761,7 +1770,7 @@ sub client_debug_arg($$) {
if ( $opt_debug ) {
mtr_add_arg($args,
- "--debug=d:t:A,%s/log/%s.trace",
+ "--debug=$debug_d:t:A,%s/log/%s.trace",
$path_vardir_trace, $client_name)
}
}
@@ -2860,7 +2869,7 @@ sub mysql_install_db {
if ( $opt_debug )
{
- mtr_add_arg($args, "--debug=d:t:i:A,%s/log/bootstrap.trace",
+ mtr_add_arg($args, "--debug=$debug_d:t:i:A,%s/log/bootstrap.trace",
$path_vardir_trace);
}
@@ -4438,7 +4447,7 @@ sub mysqld_start ($$) {
if ( $opt_debug )
{
- mtr_add_arg($args, "--debug=d:t:i:A,%s/log/%s.trace",
+ mtr_add_arg($args, "--debug=$debug_d:t:i:A,%s/log/%s.trace",
$path_vardir_trace, $mysqld->name());
}
@@ -5528,6 +5537,8 @@ Options for debugging the product
client-gdb Start mysqltest client in gdb
ddd Start mysqld in ddd
debug Dump trace output for all servers and client programs
+ debug-common Same as debug, but sets 'd' debug flags to
+ "query,info,error,enter,exit"
debugger=NAME Start mysqld in the selected debugger
gdb Start the mysqld(s) in gdb
manual-debug Let user manually start mysqld in debugger, before
Attachment: [text/bzr-bundle] bzr/bjorn.munch@oracle.com-20101129122056-m6syjq7ujefhnnx3.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-mtr branch (bjorn.munch:2952) Bug#58122 | Bjorn Munch | 29 Nov |