]> git.ipfire.org Git - thirdparty/glibc.git/commit
C-SKY: fix sigcontext miss match
authorMao Han <han_mao@c-sky.com>
Mon, 11 Mar 2019 01:45:15 +0000 (09:45 +0800)
committerMao Han <han_mao@c-sky.com>
Mon, 11 Mar 2019 01:45:15 +0000 (09:45 +0800)
commit6229c9bff7e3171a565b78f7f1a210126e041b5b
tree5860827d3f4488ee742b62c10763b73718319059
parent86bdd49d93665b9d7b1b98502b84d0fa9af6915f
C-SKY: fix sigcontext miss match

C-SKY defines SIGCONTEXT as siginfo_t *_si, struct ucontext_t * for
__profil_counter.  ucontext_t get an extra __mask field which is miss
match with the struct sigcontext from linux kernel.  The time value
from gprof report will be always zero without this patch.  This
patch also fix the registers sequence in register-dump.h.

* sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
* sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
in mcontext_t
ChangeLog
sysdeps/unix/sysv/linux/csky/register-dump.h
sysdeps/unix/sysv/linux/csky/sys/ucontext.h