Package ghidra.trace.model.guest
Interface TracePlatformManager
- All Known Implementing Classes:
DBTracePlatformManager
public interface TracePlatformManager
Allows the addition of "guest platforms" for disassembling in multiple languages.
TODO: Allow the placement of data units with alternative data organization.
-
Method Summary
Modifier and TypeMethodDescriptionaddGuestPlatform(CompilerSpec compilerSpec) Add a guest platformGet all guest platformsGet a platform representing the trace's base language and compiler specgetOrAddPlatform(CompilerSpec compilerSpec) Get or add a platform for the given compiler specgetPlatform(CompilerSpec compilerSpec) Get the platform for the given compiler spec
-
Method Details
-
getHostPlatform
TracePlatform getHostPlatform()Get a platform representing the trace's base language and compiler spec- Returns:
- the host platform
-
getGuestPlatforms
Collection<TraceGuestPlatform> getGuestPlatforms()Get all guest platforms- Returns:
- the collection of platforms
-
addGuestPlatform
Add a guest platform- Parameters:
compilerSpec- the compiler spec, which cannot be the base compiler spec- Returns:
- the new platform
-
getPlatform
Get the platform for the given compiler spec- Parameters:
compilerSpec- the compiler spec- Returns:
- the platform, if found, or null
-
getOrAddPlatform
Get or add a platform for the given compiler spec- Parameters:
compilerSpec- the compiler spec- Returns:
- the new or existing platform
-