Update for the KDB framework:
o Call kdb_enter() instead of Debugger(). o Change comments accordingly.
This commit is contained in:
parent
7e17bc9f26
commit
f33ca0c961
@ -47,6 +47,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/limits.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -322,7 +323,7 @@ ng_alloc_node(void)
|
||||
#define NG_FREE_ITEM_REAL(item) do { FREE((item), M_NETGRAPH_ITEM); } while (0)
|
||||
|
||||
|
||||
/* Set this to Debugger("X") to catch all errors as they occur */
|
||||
/* Set this to kdb_enter("X") to catch all errors as they occur */
|
||||
#ifndef TRAP_ERROR
|
||||
#define TRAP_ERROR()
|
||||
#endif
|
||||
@ -3366,12 +3367,12 @@ ng_setisr(node_p node)
|
||||
do { \
|
||||
if (NGI_NODE(item) ) { \
|
||||
printf("item already has node"); \
|
||||
Debugger("has node"); \
|
||||
kdb_enter("has node"); \
|
||||
NGI_CLR_NODE(item); \
|
||||
} \
|
||||
if (NGI_HOOK(item) ) { \
|
||||
printf("item already has hook"); \
|
||||
Debugger("has hook"); \
|
||||
kdb_enter("has hook"); \
|
||||
NGI_CLR_HOOK(item); \
|
||||
} \
|
||||
} while (0)
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* ng_socket.c
|
||||
*
|
||||
@ -51,6 +50,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/domain.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -156,7 +156,7 @@ static LIST_HEAD(, ngpcb) ngsocklist;
|
||||
|
||||
#define sotongpcb(so) ((struct ngpcb *)(so)->so_pcb)
|
||||
|
||||
/* If getting unexplained errors returned, set this to "Debugger("X"); */
|
||||
/* If getting unexplained errors returned, set this to "kdb_enter("X"); */
|
||||
#ifndef TRAP_ERROR
|
||||
#define TRAP_ERROR
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user