head	1.23;
access;
symbols
	RELENG_8_4:1.23.0.2
	RELENG_9_1_0_RELEASE:1.16.2.2.2.2
	RELENG_9_1:1.16.2.2.0.2
	RELENG_9_1_BP:1.16.2.2
	RELENG_8_3_0_RELEASE:1.14.2.2.2.1
	RELENG_8_3:1.14.2.2.0.2
	RELENG_8_3_BP:1.14.2.2
	RELENG_9_0_0_RELEASE:1.16.2.1.2.1
	RELENG_9_0:1.16.2.1.0.2
	RELENG_9_0_BP:1.16.2.1
	RELENG_9:1.16.0.2
	RELENG_9_BP:1.16
	RELENG_7_4_0_RELEASE:1.12.12.1
	RELENG_8_2_0_RELEASE:1.14.2.1.6.1
	RELENG_7_4:1.12.0.12
	RELENG_7_4_BP:1.12
	RELENG_8_2:1.14.2.1.0.6
	RELENG_8_2_BP:1.14.2.1
	RELENG_8_1_0_RELEASE:1.14.2.1.4.1
	RELENG_8_1:1.14.2.1.0.4
	RELENG_8_1_BP:1.14.2.1
	RELENG_7_3_0_RELEASE:1.12.10.1
	RELENG_7_3:1.12.0.10
	RELENG_7_3_BP:1.12
	RELENG_8_0_0_RELEASE:1.14.2.1.2.1
	RELENG_8_0:1.14.2.1.0.2
	RELENG_8_0_BP:1.14.2.1
	RELENG_8:1.14.0.2
	RELENG_8_BP:1.14
	RELENG_7_2_0_RELEASE:1.12.8.1
	RELENG_7_2:1.12.0.8
	RELENG_7_2_BP:1.12
	RELENG_7_1_0_RELEASE:1.12.6.1
	RELENG_6_4_0_RELEASE:1.11.26.1
	RELENG_7_1:1.12.0.6
	RELENG_7_1_BP:1.12
	RELENG_6_4:1.11.0.26
	RELENG_6_4_BP:1.11
	RELENG_7_0_0_RELEASE:1.12
	RELENG_6_3_0_RELEASE:1.11
	RELENG_7_0:1.12.0.4
	RELENG_7_0_BP:1.12
	RELENG_6_3:1.11.0.24
	RELENG_6_3_BP:1.11
	RELENG_7:1.12.0.2
	RELENG_7_BP:1.12
	RELENG_6_2_0_RELEASE:1.11
	RELENG_6_2:1.11.0.22
	RELENG_6_2_BP:1.11
	RELENG_5_5_0_RELEASE:1.11
	RELENG_5_5:1.11.0.20
	RELENG_5_5_BP:1.11
	RELENG_6_1_0_RELEASE:1.11
	RELENG_6_1:1.11.0.18
	RELENG_6_1_BP:1.11
	RELENG_6_0_0_RELEASE:1.11
	RELENG_6_0:1.11.0.16
	RELENG_6_0_BP:1.11
	RELENG_6:1.11.0.14
	RELENG_6_BP:1.11
	RELENG_5_4_0_RELEASE:1.11
	RELENG_5_4:1.11.0.12
	RELENG_5_4_BP:1.11
	RELENG_4_11_0_RELEASE:1.4.2.2
	RELENG_4_11:1.4.2.2.0.10
	RELENG_4_11_BP:1.4.2.2
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.10
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.8
	RELENG_5_BP:1.11
	RELENG_4_10_0_RELEASE:1.4.2.2
	RELENG_4_10:1.4.2.2.0.8
	RELENG_4_10_BP:1.4.2.2
	RELENG_5_2_1_RELEASE:1.11
	RELENG_5_2_0_RELEASE:1.11
	RELENG_5_2:1.11.0.6
	RELENG_5_2_BP:1.11
	RELENG_4_9_0_RELEASE:1.4.2.2
	RELENG_4_9:1.4.2.2.0.6
	RELENG_4_9_BP:1.4.2.2
	RELENG_5_1_0_RELEASE:1.11
	RELENG_5_1:1.11.0.4
	RELENG_5_1_BP:1.11
	RELENG_4_8_0_RELEASE:1.4.2.2
	RELENG_4_8:1.4.2.2.0.4
	RELENG_4_8_BP:1.4.2.2
	RELENG_5_0_0_RELEASE:1.11
	RELENG_5_0:1.11.0.2
	RELENG_5_0_BP:1.11
	RELENG_4_7_0_RELEASE:1.4.2.2
	RELENG_4_7:1.4.2.2.0.2
	RELENG_4_7_BP:1.4.2.2
	RELENG_4_6_2_RELEASE:1.4
	RELENG_4_6_1_RELEASE:1.4
	RELENG_4_6_0_RELEASE:1.4
	RELENG_4_6:1.4.0.10
	RELENG_4_6_BP:1.4
	RELENG_4_5_0_RELEASE:1.4
	RELENG_4_5:1.4.0.8
	RELENG_4_5_BP:1.4
	RELENG_4_4_0_RELEASE:1.4
	RELENG_4_4:1.4.0.6
	RELENG_4_4_BP:1.4
	RELENG_4_3_0_RELEASE:1.4
	RELENG_4_3:1.4.0.4
	RELENG_4_3_BP:1.4
	RELENG_4_2_0_RELEASE:1.4
	RELENG_4_1_1_RELEASE:1.4
	PRE_SMPNG:1.5
	RELENG_4_1_0_RELEASE:1.4
	RELENG_3_5_0_RELEASE:1.2
	RELENG_4_0_0_RELEASE:1.4
	RELENG_4:1.4.0.2
	RELENG_4_BP:1.4
	RELENG_3_4_0_RELEASE:1.2
	RELENG_3_3_0_RELEASE:1.2
	RELENG_3_2_PAO:1.2.0.10
	RELENG_3_2_PAO_BP:1.2
	RELENG_3_2_0_RELEASE:1.2
	RELENG_3_1_0_RELEASE:1.2
	RELENG_3:1.2.0.8
	RELENG_3_BP:1.2
	RELENG_2_2_8_RELEASE:1.2
	RELENG_3_0_0_RELEASE:1.2
	RELENG_2_2_7_RELEASE:1.2
	RELENG_2_2_6_RELEASE:1.2
	RELENG_2_2_5_RELEASE:1.2
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.2
	RELENG_2_2_1_RELEASE:1.2
	RELENG_2_2_0_RELEASE:1.2
	RELENG_2_1_7_RELEASE:1.2
	RELENG_2_1_6_1_RELEASE:1.2
	RELENG_2_1_6_RELEASE:1.2
	RELENG_2_2:1.2.0.6
	RELENG_2_2_BP:1.2
	RELENG_2_1_5_RELEASE:1.2
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.4
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.2
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.1.1.1.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.23
date	2012.11.17.01.54.22;	author svnexp;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2012.04.09.14.47.18;	author dim;	state Exp;
branches;
next	1.21;

1.21
date	2011.10.21.11.08.25;	author des;	state Exp;
branches;
next	1.20;

1.20
date	2011.10.13.16.29.24;	author des;	state Exp;
branches;
next	1.19;

1.19
date	2011.10.12.21.45.12;	author des;	state Exp;
branches;
next	1.18;

1.18
date	2011.10.08.12.59.41;	author des;	state Exp;
branches;
next	1.17;

1.17
date	2011.10.08.09.57.29;	author des;	state Exp;
branches;
next	1.16;

1.16
date	2011.03.01.16.42.28;	author dchagin;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches;
next	1.14;

1.14
date	2008.02.05.08.52.35;	author des;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2008.02.03.11.34.56;	author des;	state Exp;
branches;
next	1.12;

1.12
date	2006.05.20.14.27.22;	author netchild;	state Exp;
branches
	1.12.2.1
	1.12.6.1
	1.12.8.1
	1.12.10.1
	1.12.12.1;
next	1.11;

1.11
date	2002.07.23.09.15.45;	author ru;	state Exp;
branches
	1.11.14.1
	1.11.26.1;
next	1.10;

1.10
date	2002.06.21.11.06.11;	author markm;	state Exp;
branches;
next	1.9;

1.9
date	2002.06.21.10.21.21;	author markm;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.11.14.49.31;	author ru;	state Exp;
branches;
next	1.7;

1.7
date	2000.09.14.18.52.48;	author jkh;	state Exp;
branches;
next	1.6;

1.6
date	2000.09.14.06.20.07;	author jkh;	state Exp;
branches;
next	1.5;

1.5
date	2000.08.01.10.21.12;	author ru;	state Exp;
branches;
next	1.4;

1.4
date	99.12.03.12.50.01;	author marcel;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	99.12.02.13.47.17;	author marcel;	state Exp;
branches;
next	1.2;

1.2
date	94.11.21.00.54.28;	author phk;	state Exp;
branches;
next	1.1;

1.1
date	94.05.27.12.31.52;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.23.2.1
date	2012.11.17.01.54.22;	author svnexp;	state dead;
branches;
next	1.23.2.2;

1.23.2.2
date	2013.03.28.13.06.04;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.16.2.1.2.1;
next	1.16.2.2;

1.16.2.2
date	2012.04.18.20.32.07;	author dim;	state Exp;
branches
	1.16.2.2.2.1;
next	1.16.2.3;

1.16.2.3
date	2012.11.17.11.37.39;	author svnexp;	state Exp;
branches;
next	1.16.2.4;

1.16.2.4
date	2013.11.21.21.01.52;	author svnexp;	state Exp;
branches;
next	;

1.16.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.16.2.1.2.2;

1.16.2.1.2.2
date	2012.11.17.08.37.35;	author svnexp;	state Exp;
branches;
next	;

1.16.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.16.2.2.2.2;

1.16.2.2.2.2
date	2012.11.17.08.48.27;	author svnexp;	state Exp;
branches;
next	;

1.14.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.14.2.1.2.1
	1.14.2.1.4.1
	1.14.2.1.6.1;
next	1.14.2.2;

1.14.2.2
date	2011.04.02.08.29.02;	author dchagin;	state Exp;
branches
	1.14.2.2.2.1;
next	1.14.2.3;

1.14.2.3
date	2012.11.17.10.37.17;	author svnexp;	state Exp;
branches;
next	;

1.14.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.14.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.14.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.14.2.2.2.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.14.2.2.2.2;

1.14.2.2.2.2
date	2012.11.17.08.25.50;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	2011.04.02.08.34.24;	author dchagin;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2011.04.02.10.28.08;	author dchagin;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2012.11.17.08.08.29;	author svnexp;	state Exp;
branches;
next	;

1.12.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.12.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.12.10.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.12.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.12.12.2;

1.12.12.2
date	2012.11.17.08.17.42;	author svnexp;	state Exp;
branches;
next	;

1.11.14.1
date	2012.11.17.07.45.43;	author svnexp;	state Exp;
branches;
next	;

1.11.26.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1
date	2002.07.23.09.14.38;	author ru;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2002.07.23.09.16.07;	author ru;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2012.11.17.07.27.33;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.27.12.31.53;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD: head/usr.bin/kdump/Makefile 234058 2012-04-09 14:47:18Z dim $

.if (${MACHINE_ARCH} == "amd64")
SFX=		32
.endif

.PATH: ${.CURDIR}/../ktrace

PROG=		kdump
SRCS=		kdump_subr.c kdump.c ioctl.c subr.c
DPSRCS=		kdump_subr.h 
CFLAGS+=	-I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I.

.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+=		linux_syscalls.c
.endif

NO_WERROR?=	YES

CLEANFILES=	ioctl.c kdump_subr.c kdump_subr.h linux_syscalls.c

ioctl.c: mkioctls
	env MACHINE=${MACHINE} CPP="${CPP}" \
	    sh ${.CURDIR}/mkioctls print ${DESTDIR}/usr/include > ${.TARGET}

kdump_subr.h: mksubr
	sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include | \
	    sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET}

kdump_subr.c: mksubr kdump_subr.h
	sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET}

linux_syscalls.c:
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
	    ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
	echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \
	    >> linux_syscalls.c

.include <bsd.prog.mk>
@


1.23.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:04 +0000
@
text
@d1 40
@


1.23.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 32
#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD: releng/8.4/usr.bin/kdump/Makefile 220267 2011-04-02 08:29:02Z dchagin $

.if (${MACHINE_ARCH} == "amd64")
SFX=		32
.endif

.PATH: ${.CURDIR}/../ktrace

PROG=		kdump
SRCS=		kdump.c ioctl.c kdump_subr.c subr.c
CFLAGS+=	-I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../..

.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+=		linux_syscalls.c
.endif

CLEANFILES=	ioctl.c kdump_subr.c linux_syscalls.c

ioctl.c: mkioctls
	sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}

kdump_subr.c: mksubr
	sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include > ${.TARGET}

linux_syscalls.c:
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
	    ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
	echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \
	    >> linux_syscalls.c

.include <bsd.prog.mk>
@


1.22
log
@SVN rev 234058 on 2012-04-09 14:47:18Z by dim

In kdump's mkioctls script, use '${CPP}' instead of hardcodedly using
'gcc -E'.  This fixes building when WITH_CLANG_IS_CC is in effect.

Report by:	Niclas Zeising <zeising@@daemonic.se>
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.21
log
@SVN rev 226608 on 2011-10-21 11:08:25Z by des

It turns out that truss also used kdump's mkioctls script, and expected
ioctlname() to return a pointer to the name rather than print it.  This did
not show up in testing because truss had its own prototype for ioctlname(),
so it would build fine and run fine as long as the program being traced did
not issue an ioctl.

Teach mkioctls to generate different versions of ioctlname() based on its
first command-line argument.

Pointed out by:	Garrett Cooper <yanegomi@@gmail.com>
@
text
@d24 1
a24 1
	env MACHINE=${MACHINE} \
@


1.20
log
@SVN rev 226344 on 2011-10-13 16:29:24Z by des

Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE}
instead of $(uname -m).

Pointed out by:	nyan@@
@
text
@d25 1
a25 1
	    sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.19
log
@SVN rev 226329 on 2011-10-12 21:45:12Z by des

Make kdump compile cleanly at WARNS level 6, with one exception: the
ipfilter headers contain a duplicated function declaration.  Turn off
-Werror to allow kdump to compile in spite of this.

It would be neat to be able to turn off -Werror on a file-by-file basis...

PR:		bin/161478
Submitted by:	Garrett Cooper <yanegomi@@gmail.com>
@
text
@d24 2
a25 1
	sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.18
log
@SVN rev 226158 on 2011-10-08 12:59:41Z by des

Fix the dependency issue properly by a) moving kdump_subr.c to the front
of the SRCS list and b) listing kdump_subr.h in DPSRCS.
@
text
@d19 1
a19 1
WARNS?=		0
d21 1
a21 1
CLEANFILES=	ioctl.c kdump_subr.c linux_syscalls.c
@


1.17
log
@SVN rev 226145 on 2011-10-08 09:57:29Z by des

1) Some of the #defines or enums for which we auto-generate naming
   functions may be wider than int, so use intmax_t throughout.  Also
   add missing casts in printf() calls.

2) Clean up some of the auto-generated code to improve readability.

3) Auto-generate kdump_subr.h.  Note that this requires a semi-ugly hack
   in the Makefile to make sure it is generated before make(1) tries to
   build kdump.c, or preprocess it for 'make depend'.

MFC after:	3 weeks
@
text
@d11 2
a12 1
SRCS=		kdump.c ioctl.c kdump_subr.c subr.c
a32 5
# kdump.c includes kdump_subr.h, which is auto-generated.  Add a
# manual dependency to make sure kdump_subr.h is generated before we
# try to either compile or preprocess kdump.c.
${.CURDIR}/kdump.c: kdump_subr.h

@


1.16
log
@SVN rev 219138 on 2011-03-01 16:42:28Z by dchagin

Teach kdump to decode linux syscalls names too.

Fix bug introduced in my previous commit: the kernel always dump native
signal numbers, so no need to check the ABI in ktrpsig().

Suggested by:	jhb
MFC after:	1 Month.
@
text
@d12 1
a12 1
CFLAGS+=	-I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../..
d25 11
a35 2
kdump_subr.c: mksubr
	sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include > ${.TARGET}
@


1.16.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.16.2.2
log
@SVN rev 234444 on 2012-04-18 20:32:07Z by dim

MFC r234058:
  In kdump's mkioctls script, use '${CPP}' instead of hardcodedly using
  'gcc -E'.  This fixes building when WITH_CLANG_IS_CC is in effect.

  Report by:	Niclas Zeising <zeising@@daemonic.se>

MFC r234060:
  Since truss also uses kdump's mkioctls script, pass the value of ${CPP}
  there too, similar to r234058.
@
text
@d23 1
a23 2
	env CPP="${CPP}" \
	   sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.16.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/usr.bin/kdump/Makefile 234444 2012-04-18 20:32:07Z dim $
@


1.16.2.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/258442
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/usr.bin/kdump/Makefile 258442 2013-11-21 20:09:44Z jhb $
d11 2
a12 3
SRCS=		kdump_subr.c kdump.c ioctl.c subr.c
DPSRCS=		kdump_subr.h 
CFLAGS+=	-I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I.
d18 1
a18 1
NO_WERROR?=	YES
d20 1
a20 1
CLEANFILES=	ioctl.c kdump_subr.c kdump_subr.h linux_syscalls.c
d23 2
a24 2
	env MACHINE=${MACHINE} CPP="${CPP}" \
	    sh ${.CURDIR}/mkioctls print ${DESTDIR}/usr/include > ${.TARGET}
d26 2
a27 6
kdump_subr.h: mksubr
	sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include | \
	    sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET}

kdump_subr.c: mksubr kdump_subr.h
	sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET}
@


1.16.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.16.2.2.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/usr.bin/kdump/Makefile 234444 2012-04-18 20:32:07Z dim $
@


1.16.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.16.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/usr.bin/kdump/Makefile 219138 2011-03-01 16:42:28Z dchagin $
@


1.15
log
@SVN rev 201386 on 2010-01-02 10:27:05Z by ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.
@
text
@d4 4
d14 4
d20 1
a20 1
CLEANFILES=	ioctl.c kdump_subr.c
d28 6
@


1.14
log
@Revert CLEANDEPFILES commit per ru@@'s request; it does not really solve
the problem.  The correct fix will follow.
@
text
@d10 2
@


1.14.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.14.2.2
log
@SVN rev 220267 on 2011-04-02 08:29:02Z by dchagin

MFC r219043:

Teach kdump to understand sv_flags records in the trace files.

MFC r219044:

Update manual page to reflect latest changes of ABI description support.

MFC r219138:

Teach kdump to understand linux syscalls names too.

Fix bug introduced in r219043: the kernel always dump native
signal numbers, so no need to check the ABI in ktrpsig().
@
text
@a3 4
.if (${MACHINE_ARCH} == "amd64")
SFX=		32
.endif

d10 1
a10 5
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+=		linux_syscalls.c
.endif

CLEANFILES=	ioctl.c kdump_subr.c linux_syscalls.c
a17 6
linux_syscalls.c:
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
	    ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
	echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \
	    >> linux_syscalls.c

@


1.14.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/usr.bin/kdump/Makefile 220267 2011-04-02 08:29:02Z dchagin $
@


1.14.2.2.2.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.14.2.2.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/usr.bin/kdump/Makefile 220267 2011-04-02 08:29:02Z dchagin $
@


1.14.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.14.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.14.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.13
log
@Normally, when a header file is removed from the build (as i4b headers
were recently), a simple 'make cleandepend; make depend' is sufficient
to keep the tree buildable after a cvs update when doing incremental
builds.

However, kdump and truss use a script which searches for header files
that define ioctls, and generates C code that includes them.  This
script will usually not need updating when a header file is removed,
so the normal dependency mechanism will not realize that it needs to
be re-run.  One is therefore left with code that references dead files
but will only be removed by a full 'make clean', which defeats the
purpose of incremental builds.

To work around this, modify the cleandepend target in bsd.dep.mk to
also remove any files listed in a new variable named CLEANDEPFILES,
and modify kdump's and truss's Makefiles accordingly.

MFC after:	2 weeks
@
text
@d10 1
a10 2
CLEANDEPFILES=	ioctl.c kdump_subr.c
CLEANFILES=	${CLEANDEPFILES}
@


1.12
log
@Change kdump to print more useful information, i.e. it changes from
 32229 telnet   CALL  mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0)
 32229 telnet   CALL  open(0x2807bc28,0,0x1b6)
 32229 telnet   CALL  socket(0x2,0x2,0)
to
 32229 telnet   CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0)
 32229 telnet   CALL  open(0x2807bc28,O_RDONLY,<unused>0x1b6)
 32229 telnet   CALL  socket(PF_INET,SOCK_DGRAM,0)

David wanted to implement the suggestions which came up at the review from
arch@@ too, but real life rejected this proposal. So I commit what we already
got and let another volunteer pick the remaining work from the ideas list.

Submitted by:	"David Kirchner" <dpk@@dpk.net>
Suggested by:	FreeBSD ideas list page
Reviewed by:	arch
@
text
@d10 2
a11 1
CLEANFILES=	ioctl.c kdump_subr.c
@


1.12.2.1
log
@SVN rev 220268 on 2011-04-02 08:34:24Z by dchagin

MFC r219043:

Teach kdump to understand sv_flags records in the trace files.

MFC r219044:

Update manual page to reflect latest changes of ABI description support.

MFC r219138:

Teach kdump to understand linux syscalls names too.

Fix bug introduced in r219043: the kernel always dump native
signal numbers, so no need to check the ABI in ktrpsig().
@
text
@a3 4
.if (${MACHINE_ARCH} == "amd64")
SFX=		32
.endif

d10 1
a10 5
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
SRCS+=		linux_syscalls.c
.endif

CLEANFILES=	ioctl.c kdump_subr.c linux_syscalls.c
a17 6
linux_syscalls.c:
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
	    ${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
	echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \
	    >> linux_syscalls.c

@


1.12.2.2
log
@SVN rev 220276 on 2011-04-02 10:28:08Z by dchagin

Revert r220268, SV_ABI patches was never merged to 7.
@
text
@d4 4
d14 5
a18 1
CLEANFILES=	ioctl.c kdump_subr.c
d26 6
@


1.12.2.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/usr.bin/kdump/Makefile 220276 2011-04-02 10:28:08Z dchagin $
@


1.12.12.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.12.12.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/usr.bin/kdump/Makefile 158766 2006-05-20 14:27:22Z netchild $
@


1.12.10.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.12.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.12.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.11
log
@Dependencies are delimited by space not tab.
@
text
@d7 2
a8 2
SRCS=		kdump.c ioctl.c subr.c
CFLAGS+=	-I${.CURDIR}/../ktrace -I${.CURDIR}/../..
d10 1
a10 1
CLEANFILES=	ioctl.c
d15 3
@


1.11.14.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/usr.bin/kdump/Makefile 100559 2002-07-23 09:15:45Z ru $
@


1.11.26.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.10
log
@Better fix for style.

Suggested by:	ru (but modified a bit by markm)
@
text
@d4 1
a4 1
.PATH:		${.CURDIR}/../ktrace
d12 1
a12 1
ioctl.c:	mkioctls
@


1.9
log
@Style tidy-up.
@
text
@d4 1
a4 3
PROG=	kdump
SRCS=	kdump.c ioctl.c subr.c
CFLAGS+=-I${.CURDIR}/../ktrace -I${.CURDIR}/../..
d6 3
a8 1
CLEANFILES+=ioctl.c
d10 1
a10 1
.PATH:	${.CURDIR}/../ktrace
d12 1
a12 1
ioctl.c: mkioctls
@


1.8
log
@I now don't seem to be able to reproduce the -DNOCLEAN buildworld
breakage with ioctl.c.  The .depend file should track dependencies
just fine, and the worst we can have is to miss new ioctls.

But I still think it's a good idea to have -DNOCLEAN build produce
the same ioctl.c as it would without -DNOCLEAN.

Prodded for a long time by:	bde
@
text
@d5 1
d7 3
a9 1
SRCS=	kdump.c ioctl.c subr.c
a10 1
CLEANFILES+=ioctl.c
@


1.7
log
@Fix ioctl.c creation to deal with the depend case more properly.

Submitted by:	Ruslan Ermilov <ru@@sunbay.com>
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/kdump/Makefile,v 1.6 2000/09/14 06:20:07 jkh Exp $
a9 3
.if make(depend)
ioctl.c: .PHONY
.else
a10 1
.endif
@


1.6
log
@remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.

Approved by:	sef
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/kdump/Makefile,v 1.5 2000/08/01 10:21:12 ru Exp $
d10 6
a15 2
ioctl.c:
	sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ioctl.c
@


1.5
log
@Make auto-generated ioctl.c to be always considered out of date
since it could potentially depend on any ${DESTDIR}/usr/include
preprocessor file.  This fixes the broken -DNOCLEAN world build
I experienced yesterday.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/kdump/Makefile,v 1.4 1999/12/03 12:50:01 marcel Exp $
d10 1
a10 1
ioctl.c: .PHONY
@


1.4
log
@Avoid hardcoding any paths and variables. The include directory must
now be specified on the command line. Accept a '-s' option which
controls whether a switch-statement is to be used instead of a series
of if-statements.

Replace cpp with gcc -E.

Discussed with: bde
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/kdump/Makefile,v 1.3 1999/12/02 13:47:17 marcel Exp $
d10 1
a10 1
ioctl.c: mkioctls
@


1.4.2.1
log
@MFC: sync style with -CURRENT.
@
text
@d2 1
a2 1
# $FreeBSD$
d4 5
a8 7
.PATH:		${.CURDIR}/../ktrace

PROG=		kdump
SRCS=		kdump.c ioctl.c subr.c
CFLAGS+=	-I${.CURDIR}/../ktrace -I${.CURDIR}/../..

CLEANFILES=	ioctl.c
d11 1
a11 1
	sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.4.2.2
log
@MFC: Dependencies are delimited by space not tab.
@
text
@d4 1
a4 1
.PATH: ${.CURDIR}/../ktrace
@


1.4.2.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/usr.bin/kdump/Makefile 100560 2002-07-23 09:16:07Z ru $
@


1.3
log
@Make sure DESTDIR is set in the environment of mkioctls. This fixes
the breakage people have encountered at certain times (for example
when the altq_*.h files were removed).

$FreeBSD$ tag added.
@
text
@d2 1
a2 1
# $FreeBSD$
d11 1
a11 1
	DESTDIR=${DESTDIR} /bin/sh ${.CURDIR}/mkioctls > ioctl.c
@


1.2
log
@-I${.CURDIR}/../..
@
text
@d2 1
d11 1
a11 1
	/bin/sh ${.CURDIR}/mkioctls > ioctl.c
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
CFLAGS+=-I${.CURDIR}/../ktrace
@


1.1.1.1
log
@BSD 4.4 Lite Usr.bin Sources
@
text
@@
