What's this gregset_t gregs thing

blubee blubeeme gurenchan at gmail.com
Mon Aug 20 00:33:16 UTC 2018


Linux has gregset_t gregs;
https://github.com/lattera/glibc/blob/master/sysdeps/unix/sysv/linux/x86/sys/ucontext.h

Defined above, I also see it in the RISC-V glibc stuff as well.

FreeBSD doesn't seem to have this field defined, I see FreeBSD uses
/usr/include/x86/ucontext.h

but there's no gregs;

If I wanted to return mcontext.gregs

How could I implement that on FreeBSD?

Best,
Owen


More information about the freebsd-current mailing list