Package ghidra.app.services

# Interface DebuggerTargetService

public interface DebuggerTargetService

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addTargetPublicationListener(TargetPublicationListener listener)`
  Add a listener for target publication and withdrawal events
  `List<Target>`
  `getPublishedTargets()`
  Get a list of all published targets
  `Target`
  `getTarget(Trace trace)`
  Get the target for the given trace
  `void`
  `publishTarget(Target target)`
  Publish a target to the service and its listeners
  `void`
  `removeTargetPublicationListener(TargetPublicationListener listener)`
  Remove a listener for target publication and withdrawal events
  `void`
  `withdrawTarget(Target target)`
  Withdraw a target from the service and its listeners

- ## Method Details

  - ### publishTarget

    void publishTarget(Target target)
    Publish a target to the service and its listeners
    Parameters:
      `target` - the new target

  - ### withdrawTarget

    void withdrawTarget(Target target)
    Withdraw a target from the service and its listeners
    Parameters:
      `target` - the (presumably invalidated) target

  - ### getPublishedTargets

    List<Target> getPublishedTargets()
    Get a list of all published targets
    Returns:
      the list in no particular order

  - ### getTarget

    Target getTarget(Trace trace)
    Get the target for the given trace
    Parameters:
      `trace` - the trace
    Returns:
      the target, or null if there is no such target

  - ### addTargetPublicationListener

    void addTargetPublicationListener(TargetPublicationListener listener)
    Add a listener for target publication and withdrawal events
    Parameters:
      `listener` - the listener

  - ### removeTargetPublicationListener

    void removeTargetPublicationListener(TargetPublicationListener listener)
    Remove a listener for target publication and withdrawal events
    Parameters:
      `listener` - the listener