libposix: turn notes like "sys: trap: general protection violation" to SIGSEGV

This commit is contained in:
Giacomo Tesio 2020-08-29 02:05:52 +02:00
parent bb2a39cc74
commit 72af45032e

View File

@ -450,6 +450,11 @@ translate_jehanne_kernel_note(const char *note, PosixSignalInfo *siginfo)
siginfo->si_signo = PosixSIGSEGV;
note += 26;
siginfo->si_value._sival_raw = atoll(note);
} else if(strncmp("trap: general protection violation", note, 34) == 0){
// trap: general protection violation pc=0x41cc54
siginfo->si_signo = PosixSIGSEGV;
note += 38;
siginfo->si_value._sival_raw = atoll(note);
}
// TODO: implement