[Linux] Update RIP after handling an exception
This commit is contained in:
parent
54aac81268
commit
a9cbd9cc5f
|
@ -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) {
|
for (size_t i = 0; i < xe::countof(handlers_) && handlers_[i].first; ++i) {
|
||||||
if (handlers_[i].first(&ex, handlers_[i].second)) {
|
if (handlers_[i].first(&ex, handlers_[i].second)) {
|
||||||
// Exception handled.
|
// Exception handled.
|
||||||
|
// TODO(benvanik): Update all thread state? Dirty flags?
|
||||||
|
ctx->uc_mcontext.gregs[REG_RIP] = thread_context.rip;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue