Class IdentityDebuggerAddressTranslator
java.lang.Object
ghidra.debug.api.modules.IdentityDebuggerAddressTranslator
- All Implemented Interfaces:
DebuggerAddressTranslator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSimilar toDebuggerAddressTranslator.getOpenMappedLocation(Trace, ProgramLocation, long)but preserves detailsgetMappedProgramUrlsInView(Trace trace, AddressSetView set, long snap) Get all destination program URLs in mappings intersecting the given source trace, address set, and snapMap the given trace location to a program location, if the destination is opengetOpenMappedLocation(Trace trace, ProgramLocation loc, long snap) Map the given program location back to a source trace and snapMap the given program location back to open source trace locationsgetOpenMappedProgramsAtSnap(Trace trace, long snap) Collect all the open destination programs relevant for the given trace and snapgetOpenMappedViews(Program program, AddressSetView set) Find/compute all source address sets given a destination program address setgetOpenMappedViews(Trace trace, AddressSetView set, long snap) Find/compute all destination address sets given a source trace address setSimilar toDebuggerAddressTranslator.getOpenMappedLocation(TraceLocation)but preserves details
-
Constructor Details
-
IdentityDebuggerAddressTranslator
-
-
Method Details
-
getOpenMappedProgramsAtSnap
Description copied from interface:DebuggerAddressTranslatorCollect all the open destination programs relevant for the given trace and snap- Specified by:
getOpenMappedProgramsAtSnapin interfaceDebuggerAddressTranslator- Parameters:
trace- the tracesnap- the snap- Returns:
- the set of open destination programs
-
getOpenMappedLocation
Description copied from interface:DebuggerAddressTranslatorMap the given trace location to a program location, if the destination is open- Specified by:
getOpenMappedLocationin interfaceDebuggerAddressTranslator- Parameters:
loc- the source location- Returns:
- the destination location, or
nullif not mapped, or not open
-
getStaticLocationFromDynamic
Description copied from interface:DebuggerAddressTranslatorSimilar toDebuggerAddressTranslator.getOpenMappedLocation(TraceLocation)but preserves detailsThe given location's
ProgramLocation.getProgram()method must return aTraceProgramView. It derives the trace and snap from that view. Additionally, this will attempt to map over other "location" details, e.g., field, row, column.- Specified by:
getStaticLocationFromDynamicin interfaceDebuggerAddressTranslator- Parameters:
loc- a location within a trace view- Returns:
- a mapped location in a program, or
null
-
getOpenMappedLocations
Description copied from interface:DebuggerAddressTranslatorMap the given program location back to open source trace locations- Specified by:
getOpenMappedLocationsin interfaceDebuggerAddressTranslator- Parameters:
loc- the program location- Returns:
- the, possibly empty, set of trace locations
-
getOpenMappedLocation
Description copied from interface:DebuggerAddressTranslatorMap the given program location back to a source trace and snap- Specified by:
getOpenMappedLocationin interfaceDebuggerAddressTranslator- Parameters:
trace- the source trace, to which we are mapping backloc- the destination location, from which we are mapping backsnap- the source snap, to which we are mapping back- Returns:
- the source of the found mapping, or
nullif not mapped
-
getDynamicLocationFromStatic
Description copied from interface:DebuggerAddressTranslatorSimilar toDebuggerAddressTranslator.getOpenMappedLocation(Trace, ProgramLocation, long)but preserves detailsThis method derives the source trace and snap from the given view. Additinoally, this will attempt to map over other "location" details, e.g., field, row, column.
- Specified by:
getDynamicLocationFromStaticin interfaceDebuggerAddressTranslator- Parameters:
view- the view, specifying the source trace and snap, to which we are mapping backloc- the destination location, from which we are mapping back.- Returns:
- the destination of the found mapping, or
nullif not mapped
-
getOpenMappedViews
public Map<Program, Collection<MappedAddressRange>> getOpenMappedViews(Trace trace, AddressSetView set, long snap) Description copied from interface:DebuggerAddressTranslatorFind/compute all destination address sets given a source trace address set- Specified by:
getOpenMappedViewsin interfaceDebuggerAddressTranslator- Parameters:
trace- the source traceset- the source address setsnap- the source snap- Returns:
- a map of destination programs to corresponding computed destination address ranges
-
getOpenMappedViews
public Map<TraceSpan, Collection<MappedAddressRange>> getOpenMappedViews(Program program, AddressSetView set) Description copied from interface:DebuggerAddressTranslatorFind/compute all source address sets given a destination program address set- Specified by:
getOpenMappedViewsin interfaceDebuggerAddressTranslator- Parameters:
program- the destination program, from which we are mapping backset- the destination address set, from which we are mapping back- Returns:
- a map of source traces to corresponding computed source address ranges
-
getMappedProgramUrlsInView
Description copied from interface:DebuggerAddressTranslatorGet all destination program URLs in mappings intersecting the given source trace, address set, and snap- Specified by:
getMappedProgramUrlsInViewin interfaceDebuggerAddressTranslator- Parameters:
trace- the source traceset- the source address setsnap- the source snap- Returns:
- the set of destination URLs
-