Class: Lldbrun::ParserPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/lldbrun/ParserPoint.rb

Constant Summary collapse

LLDBPOINT =
/^[\s\S]+lldbpoint[\s\S]+$/i
PREV_DIR =
/^\.\./
CURRENT_DIR =
/^\.$/
RELATIVE_PATH =
/^[\.~]/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv_parser) ⇒ ParserPoint

Returns a new instance of ParserPoint.



11
12
13
14
# File 'lib/lldbrun/ParserPoint.rb', line 11

def initialize(argv_parser)
  @argv_parser  = argv_parser
  @break_points = []
end

Instance Attribute Details

#argv_parserObject (readonly)

Returns the value of attribute argv_parser.



9
10
11
# File 'lib/lldbrun/ParserPoint.rb', line 9

def argv_parser
  @argv_parser
end

#break_pointsObject (readonly)

Returns the value of attribute break_points.



9
10
11
# File 'lib/lldbrun/ParserPoint.rb', line 9

def break_points
  @break_points
end

Instance Method Details

#runObject



16
17
18
19
# File 'lib/lldbrun/ParserPoint.rb', line 16

def run
  scan_dir(argv_parser.param_scan_dir) if argv_parser.params[ParserARGV::PARAMETER_SCAN_DIR]
  system(generate_start_command)
end