code: def resolve_label(self, label):
          
  
          # Split the label into it's components.
          # Use the fuzzy mode whenever possible.
          aProcess = self.get_process()
          if aProcess is not None:
              (module, procedure, offset) = aProcess.split_label(label)
          else:
              (module, procedure, offset) = _ModuleContainer.split_label(label)
  
          # If a module name is given that doesn't match ours,
          # raise an exception.
          if module and not self.match_name(module):
              raise RuntimeError("Label does not belong to this module")
  
          # Resolve the procedure if given.
          if procedure:
              address = self.resolve(procedure)
              if address is None:
  
                  # If it's a debug symbol, use the symbol.
                  address = self.resolve_symbol(procedure)
  
                  # If it's the keyword "start" use the entry point.
                  if address is None and procedure == "start":
                      address = self.get_entry_point()
  
                  # The procedure was not found.
                  if address is None:
                      if not module:
                          module = self.get_name()
                      msg = "Can't find procedure %s in module %s"
                      raise RuntimeError(msg % (procedure, module))
  
          # If no procedure is given use the base address of the module.
          else:
              address = self.get_base()
  
          # Add the offset if given and return the resolved address.
          if offset:
              address = address + offset
          return address
docs: Resolves a label for this module only. If the label refers to another
          module, an exception is raised.
  
          @type  label: str
          @param label: Label to resolve.
  
          @rtype:  int
          @return: Memory address pointed to by the label.
  
          @raise ValueError: The label is malformed or impossible to resolve.
          @raise RuntimeError: Cannot resolve the module or function.