port to userspace.

This commit is contained in:
mrg 2011-04-14 08:59:09 +00:00
parent e813220ee8
commit 0c3d43f80c
2 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.19 2007/02/21 22:59:52 thorpej Exp $ */
/* $NetBSD: db_disasm.c,v 1.20 2011/04/14 08:59:09 mrg Exp $ */
/*
* Copyright (c) 1994 David S. Miller, davem@nadzieja.rutgers.edu
@ -32,17 +32,22 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.19 2007/02/21 22:59:52 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.20 2011/04/14 08:59:09 mrg Exp $");
#include <sys/param.h>
#include <machine/db_machdep.h>
#include <machine/instr.h>
#include <ddb/db_sym.h>
#include <ddb/db_interface.h>
#include <ddb/db_user.h>
#include <ddb/db_extern.h>
#include <ddb/db_output.h>
#include <ddb/db_access.h>
#ifndef _KERNEL
#include <stdlib.h>
#endif
/* Sign extend values */
#define SIGNEX(v,width) ({ \
unsigned s = sizeof(long)*8-(width); \

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.33 2010/07/01 02:38:27 rmind Exp $ */
/* $NetBSD: db_trace.c,v 1.34 2011/04/14 08:59:09 mrg Exp $ */
/*
* Mach Operating System
@ -27,10 +27,11 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.33 2010/07/01 02:38:27 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.34 2011/04/14 08:59:09 mrg Exp $");
#include <sys/param.h>
#include <sys/proc.h>
#include <sys/cpu.h>
#include <machine/db_machdep.h>
#include <ddb/db_access.h>