Class SleighLanguageProvider

java.lang.Object
ghidra.app.plugin.processors.sleigh.SleighLanguageProvider
All Implemented Interfaces:
LanguageProvider, ExtensionPoint

public class SleighLanguageProvider extends Object implements LanguageProvider
Searches resources for spec files and provides LanguageDescriptions for these specifications
  • Field Details

    • LANGUAGE_LOCK_TIMEOUT_PROPNAME NEW

      public static final String LANGUAGE_LOCK_TIMEOUT_PROPNAME
      Property that can be set as a jvm startup option to control the sla lock timeout duration.

      See LANGUAGE_LOCK_TIMEOUT.

      See Also:
    • LANGUAGE_LOCK_TIMEOUT NEW

      public static final Duration LANGUAGE_LOCK_TIMEOUT
      Timeout used when trying to acquire the sla file lock. (Default: 60 seconds)

      The sla lock is acquired and held during .sla file checking and writing (compiling). Currently parsing the sla xml is done after releasing the lock.

      If a Ghidra process is trying to fetch a sleigh language, which requires acquiring the lock on a sla file, and it times out before succeeding, the caller will get a LanguageNotFoundException exception.

      This timeout should be long enough to allow the process that has the lock to finish compiling and writing the slaspec so that the waiting process does not give up too quickly and give an error to the user. See LANGUAGE_LOCK_TIMEOUT_PROPNAME.

  • Method Details