Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d4c79438
Commit
d4c79438
authored
Apr 04, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option --debugger=NAME and --client-debugger=NAME.
Add support for "--debugger=windbg" and "--debugger=vcexpress"
parent
de6b1b77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+53
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
d4c79438
...
@@ -227,6 +227,8 @@ our $opt_client_ddd;
...
@@ -227,6 +227,8 @@ our $opt_client_ddd;
our
$opt_manual_gdb
;
our
$opt_manual_gdb
;
our
$opt_manual_ddd
;
our
$opt_manual_ddd
;
our
$opt_manual_debug
;
our
$opt_manual_debug
;
our
$opt_debugger
;
our
$opt_client_debugger
;
our
$opt_gprof
;
our
$opt_gprof
;
our
$opt_gprof_dir
;
our
$opt_gprof_dir
;
...
@@ -592,6 +594,8 @@ sub command_line_setup () {
...
@@ -592,6 +594,8 @@ 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
,
'
debugger=s
'
=>
\
$opt_debugger
,
'
client-debugger=s
'
=>
\
$opt_client_debugger
,
'
strace-client
'
=>
\
$opt_strace_client
,
'
strace-client
'
=>
\
$opt_strace_client
,
'
master-binary=s
'
=>
\
$exe_master_mysqld
,
'
master-binary=s
'
=>
\
$exe_master_mysqld
,
'
slave-binary=s
'
=>
\
$exe_slave_mysqld
,
'
slave-binary=s
'
=>
\
$exe_slave_mysqld
,
...
@@ -774,7 +778,8 @@ sub command_line_setup () {
...
@@ -774,7 +778,8 @@ sub command_line_setup () {
# Check debug related options
# Check debug related options
if
(
$opt_gdb
||
$opt_client_gdb
||
$opt_ddd
||
$opt_client_ddd
||
if
(
$opt_gdb
||
$opt_client_gdb
||
$opt_ddd
||
$opt_client_ddd
||
$opt_manual_gdb
||
$opt_manual_ddd
||
$opt_manual_debug
)
$opt_manual_gdb
||
$opt_manual_ddd
||
$opt_manual_debug
||
$opt_debugger
||
$opt_client_debugger
)
{
{
# Indicate that we are using debugger
# Indicate that we are using debugger
$glob_debugger
=
1
;
$glob_debugger
=
1
;
...
@@ -2556,6 +2561,10 @@ sub mysqld_start ($$$$$) {
...
@@ -2556,6 +2561,10 @@ sub mysqld_start ($$$$$) {
{
{
ddd_arguments
(
\
$args
,
\
$exe
,
"
$type
"
.
"
_
$idx
");
ddd_arguments
(
\
$args
,
\
$exe
,
"
$type
"
.
"
_
$idx
");
}
}
elsif
(
$opt_debugger
)
{
debugger_arguments
(
\
$args
,
\
$exe
,
"
$type
"
.
"
_
$idx
");
}
elsif
(
$opt_manual_debug
)
elsif
(
$opt_manual_debug
)
{
{
print
"
\n
Start
$type
in your debugger
\n
"
.
print
"
\n
Start
$type
in your debugger
\n
"
.
...
@@ -3052,6 +3061,10 @@ sub run_mysqltest ($) {
...
@@ -3052,6 +3061,10 @@ sub run_mysqltest ($) {
{
{
ddd_arguments
(
\
$args
,
\
$exe
,
"
client
");
ddd_arguments
(
\
$args
,
\
$exe
,
"
client
");
}
}
elsif
(
$opt_client_debugger
)
{
debugger_arguments
(
\
$args
,
\
$exe
,
"
client
");
}
if
(
$glob_use_libtool
and
$opt_valgrind
)
if
(
$glob_use_libtool
and
$opt_valgrind
)
{
{
...
@@ -3204,6 +3217,42 @@ sub ddd_arguments {
...
@@ -3204,6 +3217,42 @@ sub ddd_arguments {
mtr_add_arg
(
$$args
,
"
$save_exe
");
mtr_add_arg
(
$$args
,
"
$save_exe
");
}
}
#
# Modify the exe and args so that program is run in the selected debugger
#
sub
debugger_arguments
{
my
$args
=
shift
;
my
$exe
=
shift
;
my
$debugger
=
$opt_debugger
||
$opt_client_debugger
;
if
(
$debugger
eq
"
vcexpress
"
or
$debugger
eq
"
vc
")
{
# vc[express] /debugexe exe arg1 .. argn
# Add /debugexe and name of the exe before args
unshift
(
@$$args
,
"
/debugexe
");
unshift
(
@$$args
,
"
$
$exe
");
}
elsif
(
$debugger
eq
"
windbg
"
)
{
# windbg exe arg1 .. argn
# Add name of the exe before args
unshift
(
@$$args
,
"
$
$exe
");
}
else
{
mtr_error
("
Unknown argument
\"
$debugger
\"
passed to --debugger
");
}
# Set exe to debuggername
$$exe
=
$debugger
;
}
#
#
# Modify the exe and args so that program is run in valgrind
# Modify the exe and args so that program is run in valgrind
#
#
...
@@ -3311,6 +3360,8 @@ Options for debugging the product
...
@@ -3311,6 +3360,8 @@ Options for debugging the product
client-gdb Start mysqltest client in gdb
client-gdb Start mysqltest client in gdb
ddd Start mysqld in ddd
ddd Start mysqld in ddd
client-ddd Start mysqltest client in ddd
client-ddd Start mysqltest client in ddd
debugger=NAME Start mysqld in the selected debugger
client-debugger=NAME Start mysqltest in the selected debugger
strace-client FIXME
strace-client FIXME
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment