diff options
author | gj <gj@FreeBSD.org> | 1997-03-12 22:34:09 +0000 |
---|---|---|
committer | gj <gj@FreeBSD.org> | 1997-03-12 22:34:09 +0000 |
commit | 615261b3c227a8c9c68889fd101a636b51975bd9 (patch) | |
tree | 02ed2dd84ff3c76ed7f44710f25e6728036cdb52 /gnu | |
parent | fa3524a29851f4eaff09bc21c493d2607f04d787 (diff) | |
download | FreeBSD-src-615261b3c227a8c9c68889fd101a636b51975bd9.zip FreeBSD-src-615261b3c227a8c9c68889fd101a636b51975bd9.tar.gz |
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 ?
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/Makefile | 4 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/i386/nm.h | 7 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/gdb/Makefile | 4 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/gdb/nm.h | 7 |
4 files changed, 20 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/gdb/Makefile b/gnu/usr.bin/binutils/gdb/Makefile index 0baf8d2..c15d809 100644 --- a/gnu/usr.bin/binutils/gdb/Makefile +++ b/gnu/usr.bin/binutils/gdb/Makefile @@ -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> diff --git a/gnu/usr.bin/binutils/gdb/i386/nm.h b/gnu/usr.bin/binutils/gdb/i386/nm.h index 6affe1a..b18a219 100644 --- a/gnu/usr.bin/binutils/gdb/i386/nm.h +++ b/gnu/usr.bin/binutils/gdb/i386/nm.h @@ -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 */ diff --git a/gnu/usr.bin/gdb/gdb/Makefile b/gnu/usr.bin/gdb/gdb/Makefile index 0baf8d2..c15d809 100644 --- a/gnu/usr.bin/gdb/gdb/Makefile +++ b/gnu/usr.bin/gdb/gdb/Makefile @@ -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> diff --git a/gnu/usr.bin/gdb/gdb/nm.h b/gnu/usr.bin/gdb/gdb/nm.h index 6affe1a..b18a219 100644 --- a/gnu/usr.bin/gdb/gdb/nm.h +++ b/gnu/usr.bin/gdb/gdb/nm.h @@ -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 */ |