error: ‘struct mcontext_t’ has no member named ‘eip’
Posted
by user353573
on Stack Overflow
See other posts from Stack Overflow
or by user353573
Published on 2010-06-06T11:56:27Z
Indexed on
2010/06/06
12:02 UTC
Read the original article
Hit count: 358
context
original is struct sigcontext *sc;
after changing to struct mcontext_t, error occur. How to fix it?
error: ‘struct mcontext_t’ has no member named ‘eip’
#include <stdio.h>
#include <signal.h>
#include <asm/ucontext.h>
static unsigned long target;
void handler(int signum, siginfo_t *siginfo, void *uc0){
struct ucontext *uc;
mcontext_t *sc;
uc = (struct ucontext *)uc0;
sc = &uc->uc_mcontext;
sc->eip = target;
}
© Stack Overflow or respective owner