Class DBTraceProgramViewListing

java.lang.Object
ghidra.trace.database.program.AbstractDBTraceProgramViewListing
ghidra.trace.database.program.DBTraceProgramViewListing
All Implemented Interfaces:
Listing, TraceProgramViewListing

public class DBTraceProgramViewListing extends AbstractDBTraceProgramViewListing
  • Constructor Details

    • DBTraceProgramViewListing

      public DBTraceProgramViewListing(DBTraceProgramView program)
  • Method Details

    • isUndefined

      public boolean isUndefined(Address start, Address end)
      Description copied from interface: Listing
      Checks if the given ranges consists entirely of undefined data.
      Parameters:
      start - The start address of the range to check.
      end - The end address of the range to check.
      Returns:
      boolean true if the given range is in memory and has no instructions or defined data.
    • clearCodeUnits

      public void clearCodeUnits(Address startAddr, Address endAddr, boolean clearContext, TaskMonitor monitor) throws CancelledException
      Description copied from interface: Listing
      Clears any code units in the given range returning everything to "db"s, and removing any references in the affected area. Note that the module and fragment structure is unaffected. If part of a code unit is contained in the given address range then the whole code unit will be cleared.
      Parameters:
      startAddr - the start address of the area to be cleared.
      endAddr - the end address of the area to be cleared.
      clearContext - clear context register values if true
      monitor - monitor that can be used to cancel the clear operation
      Throws:
      CancelledException - if the operation was cancelled.
    • clearAll

      public void clearAll(boolean clearContext, TaskMonitor monitor)
      Description copied from interface: Listing
      Removes all CodeUnits, comments, properties, and references from the listing.
      Parameters:
      clearContext - if true, also clear any instruction context that has been laid down from previous disassembly.
      monitor - used for tracking progress and cancelling the clear operation.