* procfs.c (procfs_wait): Reinstate code which deduces the signal
[deliverable/binutils-gdb.git] / gdb / procfs.c
index 1a23a9b502d6c7aeb08a85342ffc36e52d0f57e8..48a6e1246fb4147032e29456ad72b024f230822b 100644 (file)
@@ -2325,6 +2325,29 @@ wait_again:
              statval = (SIGTRAP << 8) | 0177;
              break;
 #endif
+#ifndef FAULTED_USE_SIGINFO
+             /* Irix, contrary to the documentation, fills in 0 for si_signo.
+                Solaris fills in si_signo.  I'm not sure about others.  */
+           case FLTPRIV:
+           case FLTILL:
+             statval = (SIGILL << 8) | 0177;
+             break;
+           case FLTBPT:
+           case FLTTRACE:
+             statval = (SIGTRAP << 8) | 0177;
+             break;          
+           case FLTSTACK:
+           case FLTACCESS:
+           case FLTBOUNDS:
+             statval = (SIGSEGV << 8) | 0177;
+             break;
+           case FLTIOVF:
+           case FLTIZDIV:
+           case FLTFPE:
+             statval = (SIGFPE << 8) | 0177;
+             break;
+           case FLTPAGE:               /* Recoverable page fault */
+#endif /* not FAULTED_USE_SIGINFO */
            default:
              /* Use the signal which the kernel assigns.  This is better than
                 trying to second-guess it from the fault.  In fact, I suspect
This page took 0.022792 seconds and 4 git commands to generate.