| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: kdump.c,v 1.99 2008/09/12 20:46:42 christos Exp $ */ | | 1 | /* $NetBSD: kdump.c,v 1.100 2009/01/02 13:57:23 njoly Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1988, 1993 | | 4 | * Copyright (c) 1988, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -29,27 +29,27 @@ | | | @@ -29,27 +29,27 @@ |
29 | * SUCH DAMAGE. | | 29 | * SUCH DAMAGE. |
30 | */ | | 30 | */ |
31 | | | 31 | |
32 | #include <sys/cdefs.h> | | 32 | #include <sys/cdefs.h> |
33 | #ifndef lint | | 33 | #ifndef lint |
34 | __COPYRIGHT("@(#) Copyright (c) 1988, 1993\ | | 34 | __COPYRIGHT("@(#) Copyright (c) 1988, 1993\ |
35 | The Regents of the University of California. All rights reserved."); | | 35 | The Regents of the University of California. All rights reserved."); |
36 | #endif /* not lint */ | | 36 | #endif /* not lint */ |
37 | | | 37 | |
38 | #ifndef lint | | 38 | #ifndef lint |
39 | #if 0 | | 39 | #if 0 |
40 | static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; | | 40 | static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; |
41 | #else | | 41 | #else |
42 | __RCSID("$NetBSD: kdump.c,v 1.99 2008/09/12 20:46:42 christos Exp $"); | | 42 | __RCSID("$NetBSD: kdump.c,v 1.100 2009/01/02 13:57:23 njoly Exp $"); |
43 | #endif | | 43 | #endif |
44 | #endif /* not lint */ | | 44 | #endif /* not lint */ |
45 | | | 45 | |
46 | #include <sys/param.h> | | 46 | #include <sys/param.h> |
47 | #define _KERNEL | | 47 | #define _KERNEL |
48 | #include <sys/errno.h> | | 48 | #include <sys/errno.h> |
49 | #undef _KERNEL | | 49 | #undef _KERNEL |
50 | #include <sys/time.h> | | 50 | #include <sys/time.h> |
51 | #include <sys/uio.h> | | 51 | #include <sys/uio.h> |
52 | #include <sys/ktrace.h> | | 52 | #include <sys/ktrace.h> |
53 | #include <sys/ioctl.h> | | 53 | #include <sys/ioctl.h> |
54 | #include <sys/ptrace.h> | | 54 | #include <sys/ptrace.h> |
55 | | | 55 | |
| @@ -875,26 +875,29 @@ ktrpsig(void *v, int len) | | | @@ -875,26 +875,29 @@ ktrpsig(void *v, int len) |
875 | case SI_TIMER: | | 875 | case SI_TIMER: |
876 | printf(": code=SI_TIMER sigval %p)\n", | | 876 | printf(": code=SI_TIMER sigval %p)\n", |
877 | si->si_value.sival_ptr); | | 877 | si->si_value.sival_ptr); |
878 | return; | | 878 | return; |
879 | case SI_QUEUE: | | 879 | case SI_QUEUE: |
880 | code = "SI_QUEUE"; | | 880 | code = "SI_QUEUE"; |
881 | break; | | 881 | break; |
882 | case SI_ASYNCIO: | | 882 | case SI_ASYNCIO: |
883 | code = "SI_ASYNCIO"; | | 883 | code = "SI_ASYNCIO"; |
884 | break; | | 884 | break; |
885 | case SI_MESGQ: | | 885 | case SI_MESGQ: |
886 | code = "SI_MESGQ"; | | 886 | code = "SI_MESGQ"; |
887 | break; | | 887 | break; |
| | | 888 | case SI_LWP: |
| | | 889 | code = "SI_LWP"; |
| | | 890 | break; |
888 | default: | | 891 | default: |
889 | code = NULL; | | 892 | code = NULL; |
890 | break; | | 893 | break; |
891 | } | | 894 | } |
892 | if (code) | | 895 | if (code) |
893 | printf(": code=%s unimplemented)\n", code); | | 896 | printf(": code=%s unimplemented)\n", code); |
894 | else | | 897 | else |
895 | printf(": code=%d unimplemented)\n", | | 898 | printf(": code=%d unimplemented)\n", |
896 | si->si_code); | | 899 | si->si_code); |
897 | return; | | 900 | return; |
898 | } | | 901 | } |
899 | | | 902 | |
900 | if (si->si_code == SI_NOINFO) { | | 903 | if (si->si_code == SI_NOINFO) { |