Commit 59c4bf42 authored by unknown's avatar unknown

Add option manual-ddd

Change syntax for starting manual ddd or gdb to avoid having to
change working dir 

parent 80e53fb1
...@@ -570,6 +570,7 @@ sub command_line_setup () { ...@@ -570,6 +570,7 @@ sub command_line_setup () {
'manual-debug' => \$opt_manual_debug, 'manual-debug' => \$opt_manual_debug,
'ddd' => \$opt_ddd, 'ddd' => \$opt_ddd,
'client-ddd' => \$opt_client_ddd, 'client-ddd' => \$opt_client_ddd,
'manual-ddd' => \$opt_manual_ddd,
'debugger=s' => \$opt_debugger, 'debugger=s' => \$opt_debugger,
'client-debugger=s' => \$opt_client_debugger, 'client-debugger=s' => \$opt_client_debugger,
'strace-client' => \$opt_strace_client, 'strace-client' => \$opt_strace_client,
...@@ -4826,8 +4827,7 @@ sub gdb_arguments { ...@@ -4826,8 +4827,7 @@ sub gdb_arguments {
if ( $opt_manual_gdb ) if ( $opt_manual_gdb )
{ {
print "\nTo start gdb for $type, type in another window:\n"; print "\nTo start gdb for $type, type in another window:\n";
print "cd $glob_mysql_test_dir;\n"; print "gdb -cd $glob_mysql_test_dir -x $gdb_init_file $$exe\n";
print "gdb -x $gdb_init_file $$exe\n";
# Indicate the exe should not be started # Indicate the exe should not be started
$$exe= undef; $$exe= undef;
...@@ -4891,8 +4891,7 @@ sub ddd_arguments { ...@@ -4891,8 +4891,7 @@ sub ddd_arguments {
if ( $opt_manual_ddd ) if ( $opt_manual_ddd )
{ {
print "\nTo start ddd for $type, type in another window:\n"; print "\nTo start ddd for $type, type in another window:\n";
print "cd $glob_mysql_test_dir;\n"; print "ddd -cd $glob_mysql_test_dir -x $gdb_init_file $$exe\n";
print "ddd -x $gdb_init_file $$exe\n";
# Indicate the exe should not be started # Indicate the exe should not be started
$$exe= undef; $$exe= undef;
...@@ -5111,6 +5110,8 @@ Options for debugging the product ...@@ -5111,6 +5110,8 @@ Options for debugging the product
running test(s) running test(s)
manual-gdb Let user manually start mysqld in gdb, before running manual-gdb Let user manually start mysqld in gdb, before running
test(s) test(s)
manual-ddd Let user manually start mysqld in ddd, before running
test(s)
master-binary=PATH Specify the master "mysqld" to use master-binary=PATH Specify the master "mysqld" to use
slave-binary=PATH Specify the slave "mysqld" to use slave-binary=PATH Specify the slave "mysqld" to use
strace-client Create strace output for mysqltest client strace-client Create strace output for mysqltest client
......
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