Changeset View
Changeset View
Standalone View
Standalone View
sys/gdb/gdb_int.h
Show All 25 Lines | |||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _GDB_GDB_INT_H_ | #ifndef _GDB_GDB_INT_H_ | ||||
#define _GDB_GDB_INT_H_ | #define _GDB_GDB_INT_H_ | ||||
#include "opt_ddb.h" | |||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#ifdef DDB | |||||
#include <ddb/ddb.h> | |||||
#endif | |||||
#ifndef EOF | #ifndef EOF | ||||
#define EOF (-1) | #define EOF (-1) | ||||
#endif | #endif | ||||
SYSCTL_DECL(_debug_gdb); | SYSCTL_DECL(_debug_gdb); | ||||
extern struct gdb_dbgport *gdb_cur; | extern struct gdb_dbgport *gdb_cur; | ||||
extern int gdb_listening; | extern int gdb_listening; | ||||
void gdb_consinit(void); | void gdb_consinit(void); | ||||
extern char *gdb_rxp; | extern char *gdb_rxp; | ||||
extern size_t gdb_rxsz; | extern size_t gdb_rxsz; | ||||
extern char *gdb_txp; | extern char *gdb_txp; | ||||
#ifdef DDB | |||||
/* If set, return to DDB when controlling GDB detaches. */ | |||||
extern bool gdb_return_to_ddb; | |||||
#endif | |||||
int gdb_rx_begin(void); | int gdb_rx_begin(void); | ||||
int gdb_rx_equal(const char *); | int gdb_rx_equal(const char *); | ||||
int gdb_rx_mem(unsigned char *, size_t); | int gdb_rx_mem(unsigned char *, size_t); | ||||
int gdb_rx_varhex(uintmax_t *); | int gdb_rx_varhex(uintmax_t *); | ||||
static __inline int | static __inline int | ||||
gdb_rx_char(void) | gdb_rx_char(void) | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |