Move the prototypes of db_md_set_watchpoint(), db_md_clr_watchpoint()
and db_md_list_watchpoints() to ddb/ddb.h.
This commit is contained in:
parent
464d16ddf0
commit
216e80c2ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149925
@ -100,11 +100,6 @@ static struct special_symbol {
|
||||
};
|
||||
|
||||
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
|
||||
/*
|
||||
* Decode the function prologue for the function we're in, and note
|
||||
* which registers are stored where, and how large the stack frame is.
|
||||
|
@ -202,9 +202,6 @@ static char * watchtype_str(int type);
|
||||
int amd64_set_watch(int watchnum, unsigned int watchaddr, int size, int access,
|
||||
struct dbreg * d);
|
||||
int amd64_clr_watch(int watchnum, struct dbreg * d);
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
/*
|
||||
* Figure out how many arguments were passed into the frame at "fp".
|
||||
|
@ -51,9 +51,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#define INKERNEL(va) (((vm_offset_t)(va)) >= VM_MIN_KERNEL_ADDRESS)
|
||||
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
/*
|
||||
* APCS stack frames are awkward beasts, so I don't think even trying to use
|
||||
* a structure to represent them is a good idea.
|
||||
|
@ -66,11 +66,6 @@ static void db_list_watchpoints(void);
|
||||
static void db_set_watchpoint(vm_map_t map, db_addr_t addr,
|
||||
vm_size_t size);
|
||||
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
|
||||
static db_watchpoint_t
|
||||
db_watchpoint_alloc()
|
||||
{
|
||||
|
@ -101,6 +101,9 @@ void db_iprintf(const char *,...) __printflike(1, 2);
|
||||
struct vm_map *db_map_addr(vm_offset_t);
|
||||
boolean_t db_map_current(struct vm_map *);
|
||||
boolean_t db_map_equal(struct vm_map *, struct vm_map *);
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
void db_print_loc_and_inst(db_addr_t loc);
|
||||
void db_print_thread(void);
|
||||
void db_printf(const char *fmt, ...) __printflike(1, 2);
|
||||
|
@ -191,9 +191,6 @@ static char * watchtype_str(int type);
|
||||
int i386_set_watch(int watchnum, unsigned int watchaddr, int size, int access,
|
||||
struct dbreg * d);
|
||||
int i386_clr_watch(int watchnum, struct dbreg * d);
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
/*
|
||||
* Figure out how many arguments were passed into the frame at "fp".
|
||||
|
@ -45,10 +45,6 @@
|
||||
#include <ddb/db_variables.h>
|
||||
#include <ddb/db_output.h>
|
||||
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
static int
|
||||
db_backtrace(struct thread *td, struct pcb *pcb, int count)
|
||||
{
|
||||
|
@ -34,10 +34,6 @@
|
||||
#include <ddb/db_variables.h>
|
||||
#include <ddb/db_watch.h>
|
||||
|
||||
int db_md_set_watchpoint(db_expr_t, db_expr_t);
|
||||
int db_md_clr_watchpoint(db_expr_t, db_expr_t);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
int
|
||||
db_md_set_watchpoint(db_expr_t addr, db_expr_t size)
|
||||
{
|
||||
|
@ -42,10 +42,6 @@
|
||||
#include <ddb/db_variables.h>
|
||||
#include <ddb/db_watch.h>
|
||||
|
||||
int db_md_set_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
int db_md_clr_watchpoint(db_expr_t addr, db_expr_t size);
|
||||
void db_md_list_watchpoints(void);
|
||||
|
||||
static void db_watch_print(vm_offset_t wp, int bm);
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user