aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config/main.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-04-11 03:40:11 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-04-11 03:40:11 +0000
commit4357ca882d3115af8ff455243e20bd973d321a01 (patch)
treea9084ef1c15896d99691b6d44994fdd7757846ed /usr.sbin/config/main.c
parent4e697da8b384cc2bdd4b792b3d8ca34e111d55d1 (diff)
downloadsrc-4357ca882d3115af8ff455243e20bd973d321a01.tar.gz
src-4357ca882d3115af8ff455243e20bd973d321a01.zip
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.
Notes
Notes: svn path=/head/; revision=45579
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r--usr.sbin/config/main.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index f2c07114ee2b..b190ab0dcbd2 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);
}