Go to the source code of this file.
Contains information about a decoded trap instruction.
Trap signal number defines.
Use these instead of the signal numbers provided by your specific OS.
Enumerator |
---|
TRAP_SIGRESERVED |
|
TRAP_SIGSEGV |
|
TRAP_SIGILL |
|
TRAP_SIGTRAP |
|
TRAP_SIGFPE |
|
TRAP_SIGEND |
|
Definition at line 52 of file trap.hpp.
Decode the trap instruction at the given PC.
- Parameters
-
trp | information about trap to be filled |
sig | signal number |
xpc | exception PC |
es | execution state of the machine |
- Returns
- true if trap was decoded successfully, false otherwise.
Definition at line 192 of file md.cpp.
Handles the signal which is generated by trap instructions, caught by a signal handler and calls the correct function.
- Parameters
-
sig | signal number |
xpc | exception PC |
context | pointer to OS dependent machine context |
Definition at line 101 of file trap.cpp.
Mmap the first memory page to support hardware exceptions and check the maximum hardware trap displacement on the architectures where it is required (TRAP_INSTRUCTION_IS_LOAD defined to 1).
Definition at line 68 of file trap.cpp.