diff options
author | grog <grog@FreeBSD.org> | 1999-04-11 03:40:11 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-04-11 03:40:11 +0000 |
commit | a6f7cebb1b69be63e66d120173f9a8b4960e6986 (patch) | |
tree | d1b89928b1639b0e54736f64cac04e2ec73e3601 /usr.sbin/config/main.c | |
parent | 57c8b4d2e5800801bec90763b2aa9ed55656d8c2 (diff) | |
download | FreeBSD-src-a6f7cebb1b69be63e66d120173f9a8b4960e6986.zip FreeBSD-src-a6f7cebb1b69be63e66d120173f9a8b4960e6986.tar.gz |
Back out default debug kernel. The flags revert to historical behaviour.
Requested-by: ache
bde
dg
Modify targets for debug kernels: when -g was specified, make will
now build a debug kernel called kernel.debug, and create a stripped
version called kernel at the same time. The two targets install and
install.debug are otherwise unchanged.
Requested-by: dillon
Update man page accordingly.
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r-- | usr.sbin/config/main.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index f2c0711..b190ab0 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: main.c,v 1.27 1999/04/07 09:27:56 grog Exp $"; + "$Id: main.c,v 1.28 1999/04/10 14:03:38 ache Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -86,13 +86,10 @@ main(argc, argv) int ch; char *p; - debugging = 1; /* on by default */ - while ((ch = getopt(argc, argv, "gprns")) != -1) + while ((ch = getopt(argc, argv, "gprn")) != -1) switch (ch) { case 'g': - fprintf(stderr, - "Debugging is enabled by default, there is " - "no need to specify the -g option\n" ); + debugging++; break; case 'p': profiling++; @@ -105,9 +102,6 @@ main(argc, argv) case 'r': no_config_clobber = FALSE; break; - case 's': - debugging = 0; - break; case '?': default: usage(); @@ -118,14 +112,6 @@ main(argc, argv) if (argc != 1) usage(); - if (debugging) - printf("Building kernel with full debugging symbols. Do\n" - "\"config -s %s\" " - "for historic partial symbolic support.\n" - "To install the debugging kernel, do " - "make install.debug\n", - argv [0] ); - if (freopen(PREFIX = *argv, "r", stdin) == NULL) err(2, "%s", PREFIX); @@ -224,7 +210,7 @@ main(argc, argv) static void usage() { - fprintf(stderr, "usage: config [-gprs] sysname\n"); + fprintf(stderr, "usage: config [-gpr] sysname\n"); exit(1); } |