kdump: Show code for signals where the default action was taken.

This information is available as of kernel r220740. Trace files from older
kernels will always have 0.

MFC after:	1 week
This commit is contained in:
Jilles Tjoelker 2011-04-17 21:11:55 +00:00
parent 6d67f69487
commit a4a1c5b11e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220756

View File

@ -1134,7 +1134,7 @@ ktrpsig(struct ktr_psig *psig)
else
(void)printf("SIG %d ", psig->signo);
if (psig->action == SIG_DFL)
(void)printf("SIG_DFL\n");
(void)printf("SIG_DFL code=0x%x\n", psig->code);
else {
(void)printf("caught handler=0x%lx mask=0x%x code=0x%x\n",
(u_long)psig->action, psig->mask.__bits[0], psig->code);