Remove no-longer-needed C shims (#1686)

The published version of `libc` now has all that's necessary to natively
read these fields!
This commit is contained in:
Alex Crichton
2020-05-12 16:01:13 -05:00
committed by GitHub
parent 5394b6c72e
commit 962f057c8a
4 changed files with 7 additions and 32 deletions

View File

@@ -17,21 +17,3 @@ void Unwind(void *JmpBuf) {
jmp_buf *buf = (jmp_buf*) JmpBuf;
longjmp(*buf, 1);
}
#ifdef __APPLE__
#include <sys/ucontext.h>
void* GetPcFromUContext(ucontext_t *cx) {
return (void*) cx->uc_mcontext->__ss.__rip;
}
#endif
#if defined(__linux__) && defined(__aarch64__)
#include <sys/ucontext.h>
void* GetPcFromUContext(ucontext_t *cx) {
return (void*) cx->uc_mcontext.pc;
}
#endif // __linux__ && __aarch64__