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

Diff for /src/usr.bin/kdump/ktrstruct.c between version 1.18 and 1.19

version 1.18, 2016/03/24 05:05:42 version 1.19, 2016/05/22 23:02:28
Line 266 
Line 266 
          * note: ktrstruct() has already verified that sa points to a           * note: ktrstruct() has already verified that sa points to a
          * buffer exactly sizeof(struct sigaction) bytes long.           * buffer exactly sizeof(struct sigaction) bytes long.
          */           */
           /*
            * Fuck!  Comparison of function pointers on hppa assumes you can
            * dereference them if they're plabels!  Cast everything to void *
            * to suppress that extra logic; sorry folks, the address we report
            * here might not match what you see in your executable...
            */
         printf("struct sigaction { ");          printf("struct sigaction { ");
         if (sa->sa_handler == SIG_DFL)          if ((void *)sa->sa_handler == (void *)SIG_DFL)
                 printf("handler=SIG_DFL");                  printf("handler=SIG_DFL");
         else if (sa->sa_handler == SIG_IGN)          else if ((void *)sa->sa_handler == (void *)SIG_IGN)
                 printf("handler=SIG_IGN");                  printf("handler=SIG_IGN");
         else if (sa->sa_flags & SA_SIGINFO)          else if (sa->sa_flags & SA_SIGINFO)
                 printf("sigaction=%p", (void *)sa->sa_sigaction);                  printf("sigaction=%p", (void *)sa->sa_sigaction);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19