Class DBTraceCodeManager.DBTraceCodePrototypeEntry

java.lang.Object
ghidra.program.database.DatabaseObject
ghidra.util.database.DBAnnotatedObject
ghidra.trace.database.listing.DBTraceCodeManager.DBTraceCodePrototypeEntry
All Implemented Interfaces:
DBTraceOverlaySpaceAdapter.DecodesAddresses
Enclosing class:
DBTraceCodeManager

public static class DBTraceCodeManager.DBTraceCodePrototypeEntry extends DBAnnotatedObject implements DBTraceOverlaySpaceAdapter.DecodesAddresses
A prototype entry

Version history:

  • 1: Change address to 10-byte fixed encoding
  • 0: Initial version and previous unversioned implementation
  • Field Details

  • Constructor Details

  • Method Details

    • getOverlaySpaceAdapter

      public DBTraceOverlaySpaceAdapter getOverlaySpaceAdapter()
      Description copied from interface: DBTraceOverlaySpaceAdapter.DecodesAddresses
      Get the space adapter for the trace containing the object
      Specified by:
      getOverlaySpaceAdapter in interface DBTraceOverlaySpaceAdapter.DecodesAddresses
      Returns:
      the adapter
    • fresh

      protected void fresh(boolean created) throws IOException
      Description copied from class: DBAnnotatedObject
      Extension point: Called when the object's fields are populated.

      This provides an opportunity for the object to initialize any non-database-backed fields that depend on the database-backed fields. Note that its use may indicate a situation better solved by a custom DBCachedObjectStoreFactory.DBFieldCodec. If both the database-backed and non-database-backed fields are used frequently, then a codec may not be indicated. If the database-backed fields are only used in this method or to encode another frequently-used field, then a codec is likely better.

      For a new object, the database-backed fields remain at their initial values. They will be saved after this method returns, so they may be further initialized with custom logic.

      For an object loaded from the database, the database-backed fields are already populated from the record when this method is called. They are not automatically saved after this method returns. This method should not further initialize database-backed fields in this case.

      Overrides:
      fresh in class DBAnnotatedObject
      Parameters:
      created - true when object is being created, or false when it is being loaded.
      Throws:
      IOException - if further initialization fails.
    • getPrototype

      public InstructionPrototype getPrototype()