Record Class WellKnownDebugProvider

java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.dwarf.external.gui.WellKnownDebugProvider
Record Components:
location - url string
locationCategory - grouping criteria
warning - string
fileOrigin - file name that contained this info

public record WellKnownDebugProvider(String location, String locationCategory, String warning, String fileOrigin) extends Record
Represents a debug file search location that has been pre-provided by a Ghidra config file.
  • Constructor Details

    • WellKnownDebugProvider

      public WellKnownDebugProvider(String location, String locationCategory, String warning, String fileOrigin)
      Creates an instance of a WellKnownDebugProvider record class.
      Parameters:
      location - the value for the location record component
      locationCategory - the value for the locationCategory record component
      warning - the value for the warning record component
      fileOrigin - the value for the fileOrigin record component
  • Method Details

    • loadAll

      public static List<WellKnownDebugProvider> loadAll(String fileExt)
      Loads information about wellknown debuginfod servers from any matching file found in the application and returns a list of entries.
      Parameters:
      fileExt - extension of the url files to find
      Returns:
      list of WellKnownDebugProvider elements
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • locationCategory

      public String locationCategory()
      Returns the value of the locationCategory record component.
      Returns:
      the value of the locationCategory record component
    • warning

      public String warning()
      Returns the value of the warning record component.
      Returns:
      the value of the warning record component
    • fileOrigin

      public String fileOrigin()
      Returns the value of the fileOrigin record component.
      Returns:
      the value of the fileOrigin record component