Bring db_{read,write}_bytes() prototypes in scope.
Move Debugger() within `#ifdef DDB'
This commit is contained in:
parent
f7e639f48f
commit
240f9f0804
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: db_interface.c,v 1.17 1997/08/31 21:22:44 pk Exp $ */
|
/* $NetBSD: db_interface.c,v 1.18 1997/09/01 00:16:31 pk Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mach Operating System
|
* Mach Operating System
|
||||||
|
@ -42,12 +42,13 @@
|
||||||
|
|
||||||
#include <machine/db_machdep.h>
|
#include <machine/db_machdep.h>
|
||||||
|
|
||||||
|
#include <ddb/db_access.h>
|
||||||
|
|
||||||
#if defined(DDB)
|
#if defined(DDB)
|
||||||
#include <ddb/db_command.h>
|
#include <ddb/db_command.h>
|
||||||
#include <ddb/db_sym.h>
|
#include <ddb/db_sym.h>
|
||||||
#include <ddb/db_variables.h>
|
#include <ddb/db_variables.h>
|
||||||
#include <ddb/db_extern.h>
|
#include <ddb/db_extern.h>
|
||||||
#include <ddb/db_access.h>
|
|
||||||
#include <ddb/db_output.h>
|
#include <ddb/db_output.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -95,16 +96,18 @@ db_write_bytes(addr, size, data)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(DDB)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Data and functions used by DDB only.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
Debugger()
|
Debugger()
|
||||||
{
|
{
|
||||||
asm("ta 0x81");
|
asm("ta 0x81");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DDB)
|
|
||||||
/*
|
|
||||||
* Data and functions used by DDB only.
|
|
||||||
*/
|
|
||||||
static int nil;
|
static int nil;
|
||||||
|
|
||||||
struct db_variable db_regs[] = {
|
struct db_variable db_regs[] = {
|
||||||
|
|
Loading…
Reference in New Issue