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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e95e8764
Commit
e95e8764
authored
Sep 03, 2014
by
Sayantan Dutta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #19361317 - --MANUAL-GDB EFFECTIVELY TRUNCATES OPTION FILE ARGS AT FIRST SEMICOLON
parent
9fb7de7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+21
-8
No files found.
mysql-test/mysql-test-run.pl
View file @
e95e8764
...
...
@@ -5684,6 +5684,24 @@ sub start_mysqltest ($) {
return
$proc
;
}
sub
create_debug_statement
{
my
$args
=
shift
;
my
$input
=
shift
;
# Put $args into a single string
my
$str
=
join
("
",
@$$args
);
my
$runline
=
$input
?
"
run
$str
<
$input
"
:
"
run
$str
";
# add quotes to escape ; in plugin_load option
my
$pos1
=
index
(
$runline
,
"
--plugin_load=
");
if
(
$pos1
!=
-
1
)
{
my
$pos2
=
index
(
$runline
,
"
",
$pos1
);
substr
(
$runline
,
$pos1
+
14
,
0
)
=
"
\"
";
substr
(
$runline
,
$pos2
+
1
,
0
)
=
"
\"
";
}
return
$runline
;
}
#
# Modify the exe and args so that program is run in gdb in xterm
...
...
@@ -5699,9 +5717,7 @@ sub gdb_arguments {
# Remove the old gdbinit file
unlink
(
$gdb_init_file
);
# Put $args into a single string
my
$str
=
join
("
",
@$$args
);
my
$runline
=
$input
?
"
run
$str
<
$input
"
:
"
run
$str
";
my
$runline
=
create_debug_statement
(
$args
,
$input
);
# write init file for mysqld or client
mtr_tofile
(
$gdb_init_file
,
...
...
@@ -5749,8 +5765,7 @@ sub lldb_arguments {
my
$lldb_init_file
=
"
$opt_vardir
/tmp/lldbinit.
$type
";
unlink
(
$lldb_init_file
);
my
$str
=
join
("
",
@$$args
);
my
$runline
=
$input
?
"
r
$str
<
$input
"
:
"
r
$str
";
my
$runline
=
create_debug_statement
(
$args
,
$input
);
# write init file for mysqld or client
mtr_tofile
(
$lldb_init_file
,
...
...
@@ -5779,9 +5794,7 @@ sub ddd_arguments {
# Remove the old gdbinit file
unlink
(
$gdb_init_file
);
# Put $args into a single string
my
$str
=
join
("
",
@$$args
);
my
$runline
=
$input
?
"
run
$str
<
$input
"
:
"
run
$str
";
my
$runline
=
create_debug_statement
(
$args
,
$input
);
# write init file for mysqld or client
mtr_tofile
(
$gdb_init_file
,
...
...
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