[BACK]Return to kdump.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / kdump

Diff for /src/usr.bin/kdump/kdump.c between version 1.62 and 1.63

version 1.62, 2011/07/28 10:33:36 version 1.63, 2011/09/19 22:00:37
Line 41 
Line 41 
 #include <sys/shm.h>  #include <sys/shm.h>
 #include <sys/socket.h>  #include <sys/socket.h>
 #include <sys/sysctl.h>  #include <sys/sysctl.h>
 #include <sys/socket.h>  #include <sys/siginfo.h>
 #include <sys/un.h>  #include <sys/un.h>
 #include <sys/vmmeter.h>  #include <sys/vmmeter.h>
 #include <sys/stat.h>  #include <sys/stat.h>
Line 1122 
Line 1122 
 {  {
         (void)printf("SIG%s ", sys_signame[psig->signo]);          (void)printf("SIG%s ", sys_signame[psig->signo]);
         if (psig->action == SIG_DFL)          if (psig->action == SIG_DFL)
                 (void)printf("SIG_DFL code %d", psig->code);                  (void)printf("SIG_DFL");
         else          else
                 (void)printf("caught handler=0x%lx mask=0x%x",                  (void)printf("caught handler=0x%lx mask=0x%x",
                     (u_long)psig->action, psig->mask);                      (u_long)psig->action, psig->mask);
           if (psig->code) {
                   printf(" code ");
                   if (fancy) {
                           switch (psig->signo) {
                           case SIGILL:
                                   sigill_name(psig->code);
                                   break;
                           case SIGTRAP:
                                   sigtrap_name(psig->code);
                                   break;
                           case SIGEMT:
                                   sigemt_name(psig->code);
                                   break;
                           case SIGFPE:
                                   sigfpe_name(psig->code);
                                   break;
                           case SIGBUS:
                                   sigbus_name(psig->code);
                                   break;
                           case SIGSEGV:
                                   sigsegv_name(psig->code);
                                   break;
                           case SIGCHLD:
                                   sigchld_name(psig->code);
                                   break;
                           }
                   }
                   printf("<%d>", psig->code);
           }
   
         switch (psig->signo) {          switch (psig->signo) {
         case SIGSEGV:          case SIGSEGV:
         case SIGILL:          case SIGILL:

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63