parameters: (
          test,
          file_name,
          line_number,
          extra_options=None,
          num_expected_locations=1,
          loc_exact=False,
          module_name=None)
return_statement: return get_bpno_from_match(break_results)
docstring: Set a breakpoint by file and line, returning the breakpoint number.
  
      If extra_options is not None, then we append it to the breakpoint set command.
  
      If num_expected_locations is -1 we check that we got AT LEAST one location, otherwise we check that num_expected_locations equals the number of locations.
  
      If loc_exact is true, we check that there is one location, and that location must be at the input file and line number.
docstring_summary: Set a breakpoint by file and line, returning the breakpoint number.
docstring_tokens: Set a breakpoint by file and line returning the breakpoint number .
function: def run_break_set_by_file_and_line(
          test,
          file_name,
          line_number,
          extra_options=None,
          num_expected_locations=1,
          loc_exact=False,
          module_name=None):
      """Set a breakpoint by file and line, returning the breakpoint number.
  
      If extra_options is not None, then we append it to the breakpoint set command.
  
      If num_expected_locations is -1 we check that we got AT LEAST one location, otherwise we check that num_expected_locations equals the number of locations.
  
      If loc_exact is true, we check that there is one location, and that location must be at the input file and line number."""
  
      if file_name is None:
          command = 'breakpoint set -l %d' % (line_number)
      else:
          command = 'breakpoint set -f "%s" -l %d' % (file_name, line_number)
  
      if module_name:
          command += " --shlib '%s'" % (module_name)
  
      if extra_options:
          command += " " + extra_options
  
      break_results = run_break_set_command(test, command)
  
      if num_expected_locations == 1 and loc_exact:
          check_breakpoint_result(
              test,
              break_results,
              num_locations=num_expected_locations,
              file_name=file_name,
              line_number=line_number,
              module_name=module_name)
      else:
          check_breakpoint_result(
              test,
              break_results,
              num_locations=num_expected_locations)
  
      return get_bpno_from_match(break_results)
function_tokens: def run_break_set_by_file_and_line ( test , file_name , line_number , extra_options = None , num_expected_locations = 1 , loc_exact = False , module_name = None ) : if file_name is None : command = 'breakpoint set -l %d' % ( line_number ) else : command = 'breakpoint set -f "%s" -l %d' % ( file_name , line_number ) if module_name : command += " --shlib '%s'" % ( module_name ) if extra_options : command += " " + extra_options break_results = run_break_set_command ( test , command ) if num_expected_locations == 1 and loc_exact : check_breakpoint_result ( test , break_results , num_locations = num_expected_locations , file_name = file_name , line_number = line_number , module_name = module_name ) else : check_breakpoint_result ( test , break_results , num_locations = num_expected_locations ) return get_bpno_from_match ( break_results )