Clean up #includes.
This commit is contained in:
parent
da4e97dcc4
commit
9085601009
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_access.c,v 1.6 1994/10/09 08:19:29 mycroft Exp $ */
|
||||
/* $NetBSD: db_access.c,v 1.7 1994/10/09 08:29:55 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -34,6 +34,8 @@
|
|||
|
||||
#include <machine/db_machdep.h> /* type definitions */
|
||||
|
||||
#include <ddb/db_access.h>
|
||||
|
||||
/*
|
||||
* Access unaligned data items on aligned (longword)
|
||||
* boundaries.
|
||||
|
@ -48,11 +50,11 @@ int db_extend[] = { /* table for sign-extending */
|
|||
|
||||
db_expr_t
|
||||
db_get_value(addr, size, is_signed)
|
||||
db_addr_t addr;
|
||||
db_addr_t addr;
|
||||
register size_t size;
|
||||
boolean_t is_signed;
|
||||
boolean_t is_signed;
|
||||
{
|
||||
char data[sizeof(int)];
|
||||
char data[sizeof(int)];
|
||||
register db_expr_t value;
|
||||
register size_t i;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_access.h,v 1.5 1994/10/09 08:19:30 mycroft Exp $ */
|
||||
/* $NetBSD: db_access.h,v 1.6 1994/10/09 08:29:57 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -32,8 +32,6 @@
|
|||
/*
|
||||
* Data access functions for debugger.
|
||||
*/
|
||||
#include <machine/db_machdep.h> /* expression types */
|
||||
|
||||
db_expr_t db_get_value __P((db_addr_t, size_t, boolean_t));
|
||||
void db_put_value __P((db_addr_t, size_t, db_expr_t));
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_break.h,v 1.6 1994/10/09 08:19:33 mycroft Exp $ */
|
||||
/* $NetBSD: db_break.h,v 1.7 1994/10/09 08:29:58 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -33,12 +33,10 @@
|
|||
#define _DDB_DB_BREAK_H_
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
/*
|
||||
* Breakpoint.
|
||||
* Breakpoints.
|
||||
*/
|
||||
|
||||
typedef struct db_breakpoint {
|
||||
vm_map_t map; /* in this map */
|
||||
db_addr_t address; /* set here */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_command.c,v 1.12 1994/06/29 06:31:01 cgd Exp $ */
|
||||
/* $NetBSD: db_command.c,v 1.13 1994/10/09 08:29:59 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -45,10 +45,6 @@
|
|||
*/
|
||||
boolean_t db_cmd_loop_done;
|
||||
jmp_buf *db_recover;
|
||||
db_addr_t db_dot;
|
||||
db_addr_t db_last_addr;
|
||||
db_addr_t db_prev;
|
||||
db_addr_t db_next;
|
||||
|
||||
/*
|
||||
* if 'ed' style: 'dot' is set at start of last item printed,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_command.h,v 1.6 1994/10/09 08:19:34 mycroft Exp $ */
|
||||
/* $NetBSD: db_command.h,v 1.7 1994/10/09 08:30:00 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -32,21 +32,17 @@
|
|||
/*
|
||||
* Command loop declarations.
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
void db_command_loop __P((void));
|
||||
void db_skip_to_eol __P((void));
|
||||
|
||||
void db_error __P((char *)); /* report error */
|
||||
|
||||
extern db_addr_t db_dot; /* current location */
|
||||
extern db_addr_t db_last_addr; /* last explicit address typed */
|
||||
extern db_addr_t db_prev; /* last address examined
|
||||
or written */
|
||||
extern db_addr_t db_next; /* next address to be examined
|
||||
or written */
|
||||
db_addr_t db_dot; /* current location */
|
||||
db_addr_t db_last_addr; /* last explicit address typed */
|
||||
db_addr_t db_prev; /* last address examined
|
||||
or written */
|
||||
db_addr_t db_next; /* next address to be examined
|
||||
or written */
|
||||
|
||||
/*
|
||||
* Command table
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_lex.c,v 1.5 1994/10/09 08:19:35 mycroft Exp $ */
|
||||
/* $NetBSD: db_lex.c,v 1.6 1994/10/09 08:30:03 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -107,9 +107,6 @@ db_read_token()
|
|||
return (t);
|
||||
}
|
||||
|
||||
int db_tok_number;
|
||||
char db_tok_string[TOK_STRING_SIZE];
|
||||
|
||||
int db_radix = 16;
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_lex.h,v 1.5 1994/10/09 08:19:36 mycroft Exp $ */
|
||||
/* $NetBSD: db_lex.h,v 1.6 1994/10/09 08:30:06 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -40,10 +40,10 @@ int db_read_token __P((void));
|
|||
void db_unread_token __P((int));
|
||||
void db_flush_lex __P((void));
|
||||
|
||||
extern int db_tok_number;
|
||||
int db_tok_number;
|
||||
#define TOK_STRING_SIZE 120
|
||||
extern char db_tok_string[TOK_STRING_SIZE];
|
||||
extern int db_radix;
|
||||
char db_tok_string[TOK_STRING_SIZE];
|
||||
int db_radix;
|
||||
|
||||
#define tEOF (-1)
|
||||
#define tEOL 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_run.c,v 1.6 1994/10/09 08:19:37 mycroft Exp $ */
|
||||
/* $NetBSD: db_run.c,v 1.7 1994/10/09 08:30:08 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -32,6 +32,11 @@
|
|||
/*
|
||||
* Commands to run process.
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
#include <ddb/db_run.h>
|
||||
#include <ddb/db_lex.h>
|
||||
#include <ddb/db_break.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_run.h,v 1.1 1994/10/09 08:19:39 mycroft Exp $ */
|
||||
/* $NetBSD: db_run.h,v 1.2 1994/10/09 08:30:12 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -35,22 +35,17 @@
|
|||
/*
|
||||
* Commands to run process.
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
int db_inst_count;
|
||||
int db_load_count;
|
||||
int db_store_count;
|
||||
|
||||
#ifndef db_set_single_step
|
||||
void db_set_single_step __P((db_regs_t *));
|
||||
void db_set_single_step __P((db_regs_t *));
|
||||
#endif
|
||||
#ifndef db_clear_single_step
|
||||
void db_clear_single_step __P((db_regs_t *));
|
||||
void db_clear_single_step __P((db_regs_t *));
|
||||
#endif
|
||||
void db_restart_at_pc __P((db_regs_t *, boolean_t));
|
||||
boolean_t db_stop_at_pc __P((db_regs_t *, boolean_t *));
|
||||
void db_restart_at_pc __P((db_regs_t *, boolean_t));
|
||||
boolean_t db_stop_at_pc __P((db_regs_t *, boolean_t *));
|
||||
|
||||
#endif _DDB_DB_RUN_
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_trap.c,v 1.6 1994/10/09 08:19:42 mycroft Exp $ */
|
||||
/* $NetBSD: db_trap.c,v 1.7 1994/10/09 08:30:13 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -32,6 +32,11 @@
|
|||
/*
|
||||
* Trap entry point to kernel debugger.
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
#include <ddb/db_run.h>
|
||||
#include <ddb/db_command.h>
|
||||
#include <ddb/db_break.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_watch.c,v 1.6 1994/10/09 08:19:43 mycroft Exp $ */
|
||||
/* $NetBSD: db_watch.c,v 1.7 1994/10/09 08:30:15 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -32,6 +32,9 @@
|
|||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
#include <ddb/db_break.h>
|
||||
#include <ddb/db_watch.h>
|
||||
#include <ddb/db_lex.h>
|
||||
#include <ddb/db_access.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_watch.h,v 1.6 1994/10/09 08:19:44 mycroft Exp $ */
|
||||
/* $NetBSD: db_watch.h,v 1.7 1994/10/09 08:30:17 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -32,8 +32,6 @@
|
|||
#ifndef _DDB_DB_WATCH_
|
||||
#define _DDB_DB_WATCH_
|
||||
|
||||
#include <ddb/db_break.h>
|
||||
|
||||
/*
|
||||
* Watchpoint.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_clock.c,v 1.20 1994/09/18 21:56:16 mycroft Exp $ */
|
||||
/* $NetBSD: kern_clock.c,v 1.21 1994/10/09 08:31:28 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
|
@ -531,6 +531,8 @@ sysctl_clockrate(where, sizep)
|
|||
}
|
||||
|
||||
#ifdef DDB
|
||||
#include <machine/db_machdep.h>
|
||||
|
||||
#include <ddb/db_access.h>
|
||||
#include <ddb/db_sym.h>
|
||||
|
||||
|
@ -550,7 +552,7 @@ void db_show_callout(long addr, int haddr, int count, char *modif)
|
|||
if (t > 0)
|
||||
cum += t;
|
||||
|
||||
db_find_sym_and_offset(p1->c_func, &name, &offset);
|
||||
db_find_sym_and_offset((db_addr_t)p1->c_func, &name, &offset);
|
||||
if (name == NULL)
|
||||
name = "?";
|
||||
|
||||
|
|
Loading…
Reference in New Issue