Commit 1b241853 authored by Sergei Golubchik's avatar Sergei Golubchik

mtr: it's not silent if you say it.

don't set breakpoints automatically, it was needed many years ago but not anymore
parent eb30bb85
...@@ -1272,21 +1272,18 @@ sub command_line_setup { ...@@ -1272,21 +1272,18 @@ sub command_line_setup {
if ($opt_gdb) if ($opt_gdb)
{ {
mtr_warning("Silently converting --gdb to --client-gdb in embedded mode");
$opt_client_gdb= $opt_gdb; $opt_client_gdb= $opt_gdb;
$opt_gdb= undef; $opt_gdb= undef;
} }
if ($opt_ddd) if ($opt_ddd)
{ {
mtr_warning("Silently converting --ddd to --client-ddd in embedded mode");
$opt_client_ddd= $opt_ddd; $opt_client_ddd= $opt_ddd;
$opt_ddd= undef; $opt_ddd= undef;
} }
if ($opt_debugger) if ($opt_debugger)
{ {
mtr_warning("Silently converting --debugger to --client-debugger in embedded mode");
$opt_client_debugger= $opt_debugger; $opt_client_debugger= $opt_debugger;
$opt_debugger= undef; $opt_debugger= undef;
} }
...@@ -5341,20 +5338,12 @@ sub gdb_arguments { ...@@ -5341,20 +5338,12 @@ sub gdb_arguments {
if ( $type eq "client" ) if ( $type eq "client" )
{ {
# write init file for client # write init file for client
mtr_tofile($gdb_init_file, mtr_tofile($gdb_init_file, "set args $str\n");
"set args $str\n" .
"break main\n");
} }
else else
{ {
# write init file for mysqld # write init file for mysqld
mtr_tofile($gdb_init_file, mtr_tofile($gdb_init_file, "set args $str\n");
"set args $str\n" .
"break mysql_parse\n" .
"commands 1\n" .
"disable 1\n" .
"end\n" .
"run");
} }
if ( $opt_manual_gdb ) if ( $opt_manual_gdb )
...@@ -5405,20 +5394,12 @@ sub ddd_arguments { ...@@ -5405,20 +5394,12 @@ sub ddd_arguments {
if ( $type eq "client" ) if ( $type eq "client" )
{ {
# write init file for client # write init file for client
mtr_tofile($gdb_init_file, mtr_tofile($gdb_init_file, "set args $str\n");
"set args $str\n" .
"break main\n");
} }
else else
{ {
# write init file for mysqld # write init file for mysqld
mtr_tofile($gdb_init_file, mtr_tofile($gdb_init_file, "file $$exe\nset args $str\n");
"file $$exe\n" .
"set args $str\n" .
"break mysql_parse\n" .
"commands 1\n" .
"disable 1\n" .
"end");
} }
if ( $opt_manual_ddd ) if ( $opt_manual_ddd )
......
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