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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f500af3654fffeeaa63954ba1a77909173738f8a0335d4c0d8af48c973eb57af
4
- data.tar.gz: 8e4900a1a669ab1be5d2a5af022092e152f3b7cbb047e199837774feb54b81fc
3
+ metadata.gz: 8bab398d5fe28131405572ed92aa8a4425185a27e4009b7a65a479d7b96f7f92
4
+ data.tar.gz: 2c321eea4051b3c8eb6f47385dd2db9699a73f3aab48511e208ddca188232fba
5
5
  SHA512:
6
- metadata.gz: 0414e3ec9c65dd92c11806c9a3e9fc19c2918f7b5a5293b57dd0e4c9c609ea5c23a7ce7f007274c2b93cd6c01bd13b19adca31f16759c203d8b85645c207956d
7
- data.tar.gz: cc8d1a44b4c778ddb8af89fe40a851d47abdeda1aa9b9a220251a6bd421ad703f9275cd43e31e23557a446ecee9d6efaeeb309df3834dd59093c9f2e56708818
6
+ metadata.gz: c85794d9270602bde05e49ab6532674277e3186c6e6e11ff23ccbc9cb4579372e107c7c4993e9d0985bc299e362864d4cd291ea3780025ad4010e5e650bf5881
7
+ data.tar.gz: 3ad747e56ab0f0021523f4b5127e0c0f553ebf6589a21a170c30468390eade8b9fd3511f3a88a09ecd31dfdb7af49605b5e3f192f2dc0a183acecb7716864ce6
@@ -8,8 +8,12 @@ module Lldbrun
8
8
  @line = line
9
9
  end
10
10
 
11
- def lldb_set_breakpoint_command
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
@@ -1,3 +1,4 @@
1
+ require 'byebug'
1
2
  module Lldbrun
2
3
  class ParserARGV
3
4
 
@@ -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 << " -o \"#{break_point.lldb_set_breakpoint_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
@@ -1,3 +1,3 @@
1
1
  module Lldbrun
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lldbrun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh Hudeichuk