patch-signal_c 952 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --- strace-4.8.orig/signal.c 2013-05-23 15:41:23.000000000 +0200
  2. +++ strace-4.8/signal.c 2013-10-25 14:36:47.000000000 +0200
  3. @@ -43,17 +43,6 @@
  4. # ifndef PTRACE_POKEUSR
  5. # define PTRACE_POKEUSR PTRACE_POKEUSER
  6. # endif
  7. -#elif defined(HAVE_LINUX_PTRACE_H)
  8. -# undef PTRACE_SYSCALL
  9. -# ifdef HAVE_STRUCT_IA64_FPREG
  10. -# define ia64_fpreg XXX_ia64_fpreg
  11. -# endif
  12. -# ifdef HAVE_STRUCT_PT_ALL_USER_REGS
  13. -# define pt_all_user_regs XXX_pt_all_user_regs
  14. -# endif
  15. -# include <linux/ptrace.h>
  16. -# undef ia64_fpreg
  17. -# undef pt_all_user_regs
  18. #endif
  19. #ifdef IA64
  20. @@ -61,6 +50,7 @@
  21. #endif
  22. #if defined(SPARC) || defined(SPARC64) || defined(MIPS)
  23. +#include <asm/ptrace.h>
  24. typedef struct {
  25. struct pt_regs si_regs;
  26. int si_mask;
  27. @@ -815,7 +805,7 @@ sys_sigreturn(struct tcb *tcp)
  28. {
  29. #if defined(ARM)
  30. if (entering(tcp)) {
  31. - struct sigcontext_struct sc;
  32. + struct sigcontext sc;
  33. sigset_t sigm;
  34. if (umove(tcp, arm_regs.ARM_sp, &sc) < 0)
  35. return 0;