Package ghidra.pcode.emu.sys
Class EmuProcessExitedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ghidra.pcode.exec.PcodeExecutionException
ghidra.pcode.emu.sys.EmuSystemException
ghidra.pcode.emu.sys.EmuProcessExitedException
- All Implemented Interfaces:
Serializable
A simulated process (or thread group) has exited
The simulator should catch this exception and terminate accordingly. Continuing execution of the emulator beyond this exception will cause undefined behavior.
- See Also:
-
Constructor Summary
ConstructorDescriptionEmuProcessExitedException
(PcodeArithmetic<T> arithmetic, T status) Construct a process-exited exception with the given status code -
Method Summary
Modifier and TypeMethodDescriptionGet the status code as aT
of the throwing machinestatic <T> String
tryConcereteToString
(PcodeArithmetic<T> arithmetic, T status) Attempt to concretize a value and convert it to hexMethods inherited from class ghidra.pcode.exec.PcodeExecutionException
getFrame
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmuProcessExitedException
Construct a process-exited exception with the given status codeThis will attempt to concretize the status according to the given arithmetic, for display purposes. The original status remains accessible via
getStatus()
- Type Parameters:
T
- the type values processed by the library- Parameters:
arithmetic
- the machine's arithmeticstatus
-
-
-
Method Details
-
tryConcereteToString
Attempt to concretize a value and convert it to hex- Type Parameters:
T
- the type of the status- Parameters:
arithmetic
- the arithmetic to operate on the valuestatus
- the status value- Returns:
- the hex string, or the error message
-
getStatus
Get the status code as aT
of the throwing machine- Returns:
- the status
-