| 1204 | } |
| 1205 | |
| 1206 | static void signalActionHandler(int32_t _signalId, siginfo_t* _info, void* _context) |
| 1207 | { |
| 1208 | BX_UNUSED(_context); |
| 1209 | |
| 1210 | const char* name = "Unknown signal?"; |
| 1211 | |
| 1212 | for (uint32_t ii = 0; ii < BX_COUNTOF(s_signalInfo); ++ii) |
| 1213 | { |
| 1214 | const SignalInfo& signalInfo = s_signalInfo[ii]; |
| 1215 | |
| 1216 | if (signalInfo.signalId == _signalId) |
| 1217 | { |
| 1218 | name = signalInfo.name; |
| 1219 | break; |
| 1220 | } |
| 1221 | } |
| 1222 | |
| 1223 | if (assertFunction(Location("Exception Handler", UINT32_MAX), 2 |
| 1224 | , "%s SIGNAL %d, ERRNO %d, CODE %d" |
| 1225 | , name |
| 1226 | , _info->si_signo |
| 1227 | , _info->si_errno |
| 1228 | , _info->si_code |
| 1229 | ) ) |
| 1230 | { |
| 1231 | exit(kExitFailure, false); |
| 1232 | } |
| 1233 | } |
| 1234 | |
| 1235 | static constexpr uint32_t kExceptionStackSize = 64<<10; |
| 1236 |
nothing calls this directly
no test coverage detected