aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/db_trace.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
committerBruce Evans <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
commitb5e8ce9f12b66453759f254bdf8bfc53fe2b6948 (patch)
treee4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/amd64/amd64/db_trace.c
parent11098d3bad179feb30248af23c90e5df877d36f8 (diff)
downloadsrc-b5e8ce9f12b66453759f254bdf8bfc53fe2b6948.tar.gz
src-b5e8ce9f12b66453759f254bdf8bfc53fe2b6948.zip
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
Notes
Notes: svn path=/head/; revision=7090
Diffstat (limited to 'sys/amd64/amd64/db_trace.c')
-rw-r--r--sys/amd64/amd64/db_trace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c
index 756114f7a13b..28c152f22b3e 100644
--- a/sys/amd64/amd64/db_trace.c
+++ b/sys/amd64/amd64/db_trace.c
@@ -23,13 +23,15 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_trace.c,v 1.8 1994/08/13 03:49:37 wollman Exp $
+ * $Id: db_trace.c,v 1.9 1995/03/01 21:37:44 davidg Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
+#include <machine/md_var.h>
+
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/lock.h>
@@ -109,7 +111,6 @@ db_numargs(fp)
int *argp;
int inst;
int args;
- extern char etext[];
argp = (int *)db_get_value((int)&fp->f_retaddr, 4, FALSE);
if (argp < (int *)VM_MIN_KERNEL_ADDRESS || argp > (int *)etext)