add LINKS line to Makefile to automatically produce a link to kgdb

define START_PROGRESS in nm.h to check whether gdb was invoked as kgdb
and set the kernel_debugging flag in that case.

2.2 candidate ?
This commit is contained in:
gj 1997-03-12 22:34:09 +00:00
parent 33d156fb2d
commit aad6b7059d
4 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $Id$
# $Id: Makefile,v 1.17 1997/02/22 15:45:28 peter Exp $
PROG = gdb
@ -66,4 +66,6 @@ LDADD+= -L${.CURDIR}/../libiberty/ -liberty
DPADD+= ${.CURDIR}/../libiberty/libiberty.a
.endif
LINKS= ${BINDIR}/${PROG} ${BINDIR}/k${PROG}
.include <bsd.prog.mk>

View File

@ -115,4 +115,11 @@ extern int kernel_writablecore;
#define DEFAULT_PROMPT kernel_debugging?"(kgdb) ":"(gdb) "
/* misuse START_PROGRESS to test whether we're running as kgdb */
/* START_PROGRESS is called at the top of main */
#undef START_PROGRESS
#define START_PROGRESS(STR,N) \
if (!strcmp(STR, "kgdb")) \
kernel_debugging = 1;
#endif /* NM_FBSD_H */

View File

@ -1,4 +1,4 @@
# $Id$
# $Id: Makefile,v 1.17 1997/02/22 15:45:28 peter Exp $
PROG = gdb
@ -66,4 +66,6 @@ LDADD+= -L${.CURDIR}/../libiberty/ -liberty
DPADD+= ${.CURDIR}/../libiberty/libiberty.a
.endif
LINKS= ${BINDIR}/${PROG} ${BINDIR}/k${PROG}
.include <bsd.prog.mk>

View File

@ -115,4 +115,11 @@ extern int kernel_writablecore;
#define DEFAULT_PROMPT kernel_debugging?"(kgdb) ":"(gdb) "
/* misuse START_PROGRESS to test whether we're running as kgdb */
/* START_PROGRESS is called at the top of main */
#undef START_PROGRESS
#define START_PROGRESS(STR,N) \
if (!strcmp(STR, "kgdb")) \
kernel_debugging = 1;
#endif /* NM_FBSD_H */