[Linux] Update RIP after handling an exception

This commit is contained in:
Triang3l 2022-07-04 23:24:26 +03:00
parent 54aac81268
commit a9cbd9cc5f
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ void ExceptionHandlerCallback(int signum, siginfo_t* siginfo, void* sigctx) {
for (size_t i = 0; i < xe::countof(handlers_) && handlers_[i].first; ++i) {
if (handlers_[i].first(&ex, handlers_[i].second)) {
// Exception handled.
// TODO(benvanik): Update all thread state? Dirty flags?
ctx->uc_mcontext.gregs[REG_RIP] = thread_context.rip;
return;
}
}