chiark / gitweb /
gdb: Update from 7.11.1 to 7.12
[termux-packages] / packages / gdb / gdb-common-signals-state-save-restore.c.patch
1 FIXME: Why is this patch needed?
2
3 diff -u -r ../gdb-7.12/gdb/common/signals-state-save-restore.c ./gdb/common/signals-state-save-restore.c
4 --- ../gdb-7.12/gdb/common/signals-state-save-restore.c 2016-10-07 13:04:17.000000000 -0400
5 +++ ./gdb/common/signals-state-save-restore.c   2016-10-09 18:39:27.866619885 -0400
6 @@ -58,10 +58,12 @@
7        else if (res == -1)
8         perror_with_name (("sigaction"));
9  
10 +#ifndef __ANDROID__
11        /* If we find a custom signal handler already installed, then
12          this function was called too late.  */
13        if (oldact->sa_handler != SIG_DFL && oldact->sa_handler != SIG_IGN)
14         internal_error (__FILE__, __LINE__, _("unexpected signal handler"));
15 +#endif
16      }
17  #endif
18  }