diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/sigcontextinfo.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/sigcontextinfo.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/sigcontextinfo.h b/sysdeps/unix/sysv/linux/sh/sigcontextinfo.h index d09dbea212..29d75b0cce 100644 --- a/sysdeps/unix/sysv/linux/sh/sigcontextinfo.h +++ b/sysdeps/unix/sysv/linux/sh/sigcontextinfo.h @@ -16,6 +16,13 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#define SIGCONTEXT int _a2, int _a3, int _a4, struct sigcontext +#ifndef _SIGCONTEXTINFO_H +#define _SIGCONTEXTINFO_H -#define GET_PC(ctx) ((void *) ctx.sc_pc) +static inline uintptr_t +sigcontext_get_pc (const ucontext_t *ctx) +{ + return ctx->uc_mcontext.pc; +} + +#endif |