lldbrun 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lldbrun/BreakPoint.rb +5 -1
- data/lib/lldbrun/ParserARGV.rb +1 -0
- data/lib/lldbrun/ParserPoint.rb +11 -2
- data/lib/lldbrun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bab398d5fe28131405572ed92aa8a4425185a27e4009b7a65a479d7b96f7f92
|
4
|
+
data.tar.gz: 2c321eea4051b3c8eb6f47385dd2db9699a73f3aab48511e208ddca188232fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c85794d9270602bde05e49ab6532674277e3186c6e6e11ff23ccbc9cb4579372e107c7c4993e9d0985bc299e362864d4cd291ea3780025ad4010e5e650bf5881
|
7
|
+
data.tar.gz: 3ad747e56ab0f0021523f4b5127e0c0f553ebf6589a21a170c30468390eade8b9fd3511f3a88a09ecd31dfdb7af49605b5e3f192f2dc0a183acecb7716864ce6
|
data/lib/lldbrun/BreakPoint.rb
CHANGED
@@ -8,8 +8,12 @@ module Lldbrun
|
|
8
8
|
@line = line
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
11
|
+
def lldb_set_breakpoint
|
12
12
|
"breakpoint set --file #{file} --line #{line}"
|
13
13
|
end
|
14
|
+
|
15
|
+
def self.lldb_set_method_name_breakpoint
|
16
|
+
"breakpoint set --name lldbpoint"
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
data/lib/lldbrun/ParserARGV.rb
CHANGED
data/lib/lldbrun/ParserPoint.rb
CHANGED
@@ -14,7 +14,7 @@ module Lldbrun
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def run
|
17
|
-
scan_dir(argv_parser.param_scan_dir)
|
17
|
+
scan_dir(argv_parser.param_scan_dir) if argv_parser.params[ParserARGV::PARAMETER_SCAN_DIR]
|
18
18
|
system(generate_start_command)
|
19
19
|
end
|
20
20
|
|
@@ -28,13 +28,22 @@ module Lldbrun
|
|
28
28
|
lldb_command = lldb_run_command
|
29
29
|
lldb_command << lldb_standard_params
|
30
30
|
break_points.each do |break_point|
|
31
|
-
lldb_command <<
|
31
|
+
lldb_command << lldb_breakpoint_by_file_line(break_point)
|
32
32
|
end
|
33
|
+
lldb_command << lldb_breakpoint_by_method_name
|
33
34
|
lldb_command << lldb_run
|
34
35
|
|
35
36
|
lldb_command
|
36
37
|
end
|
37
38
|
|
39
|
+
def lldb_breakpoint_by_method_name
|
40
|
+
" -o \"#{BreakPoint.lldb_set_method_name_breakpoint}\""
|
41
|
+
end
|
42
|
+
|
43
|
+
def lldb_breakpoint_by_file_line(break_point)
|
44
|
+
" -o \"#{break_point.lldb_set_breakpoint}\""
|
45
|
+
end
|
46
|
+
|
38
47
|
def lldb_standard_params
|
39
48
|
' ' << argv_parser.param_lldb
|
40
49
|
end
|
data/lib/lldbrun/version.rb
CHANGED