Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/libc/debug.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Compounds

struct  gdb_ops
struct  trap_info

Defines

#define BUFMAX   2048
#define DEBUG(x, y)   debuglog(x, y);
#define set_debug_level(x)   remote_debug = x;
#define OK   0
#define ERROR   -1
#define ENN(x)   "x"
#define MAY_FAULT   1
#define NO_FAULT   0

Typedefs

typedef void(* exception_t )(int)

Functions

void exception_handler (int, unsigned long)
unsigned char * mem2hex (unsigned char *, unsigned char *, int, int)
 converts a memory block to hex and stores it in buf. More...

unsigned char * hex2mem (unsigned char *, unsigned char *, int, int)
 Convert the hex array pointed to by buf into binary to be placed in mem. More...

void getpacket (unsigned char *)
 Scan for the sequence $<data>#<checksum>. More...

void putpacket (unsigned char *)
 Send the packet in buffer. More...

char * make_return_packet (int)
 make a return packet. More...

void set_debug_traps ()
int computeSignal (int)
 Convert the hardware trap type code to a unix signal number. More...

char digit2hex (int)
 convert number NIB to a hex digit. More...

int hex2digit (int)
 converts an ascii hex digit to a number. More...

void debuglogs (int level, char *msg)
int hex2int ()
char * int2hex (int)
void gdb_event_loop (int, unsigned long *)
 This is the gdb event loop waiting for GDB commands. More...

char * gdb_read_registers ()
 g - read registers. More...

char * gdb_write_registers (char *)
 G - write registers. More...

char * gdb_read_memory (long, int)
 m - read memory. More...

char * gdb_write_memory (long, int, char *)
 M write memory. More...

char * gdb_continue (int, long)
 c - continue at address. More...

char * gdb_step (int, long)
 s - step instruction(s). More...

char * gdb_kill ()
 k - kill program. More...

char * gdb_last_signal ()
char * gdb_baudrate (int)
 b - change baud rate. More...

char * gdb_dump_state ()
 T - dump state. More...

char * gdb_set_thread (int, int)
 H - set thread. More...

char * gdb_detach ()
 D - host requests a detach. More...

char * gdb_read_reg (int)
 p - read one register. More...

char * gdb_write_reg (int, long)
 P - write one register. More...

char * gdb_exited ()
 W - process exited. More...

char * gdb_terminated ()
 X - process terminated. More...

char * gdb_hex ()
char * gdb_thread_alive (int)
 A - tread alive request. More...

char * gdb_extended ()
 ! - extended protocol. More...

char * gdb_debug ()
 d - toggle gdb stub diagnostics. More...

char * gdb_toggle ()
 d - toggle gdb stub. More...

char * gdb_reset ()
 r - reset target. More...

char * gdb_search (long, long, long)
 t - search backwards. More...

char * gdb_query (char *)
char * gdb_set (char *)
 Q - general set query. More...


Variables

const char hexchars [] = "0123456789abcdef"
exception_t default_trap_hook
int mem_err
int initialized
int remote_debug
char packet_in_buf [BUFMAX]
 packet buffer for debug.c. More...

char packet_out_buf [BUFMAX]
 packet buffer for debug.c. More...

int packet_index
 packet index for debug.c. More...


Define Documentation

#define BUFMAX   2048
 

Definition at line 153 of file debug.h.

Referenced by debuglog, and getpacket.

#define DEBUG x,
     debuglog(x, y);
 

Definition at line 158 of file debug.h.

Referenced by gdb_event_loop, gdb_last_signal, hex2mem, mem2hex, and set_debug_traps.

#define ENN      "x"
 

Definition at line 162 of file debug.h.

#define ERROR   -1
 

Definition at line 161 of file debug.h.

Referenced by hex2digit.

#define MAY_FAULT   1
 

Definition at line 164 of file debug.h.

Referenced by gdb_read_memory, gdb_write_memory, and mem2hex.

#define NO_FAULT   0
 

Definition at line 165 of file debug.h.

#define OK   0
 

Definition at line 160 of file debug.h.

#define set_debug_level      remote_debug = x;
 

Definition at line 159 of file debug.h.


Typedef Documentation

typedef void(* exception_t)(int)
 

Definition at line 32 of file debug.h.


Function Documentation

int computeSignal int   
 

Convert the hardware trap type code to a unix signal number.

Definition at line 513 of file debug.c.

void debuglogs int    level,
char *    msg
 

void exception_handler int   ,
unsigned    long
 

Referenced by set_debug_traps.

char* gdb_hex  
 

char* gdb_last_signal  
 

Referenced by gdb_event_loop.

char* gdb_query char *   
 

int hex2int  
 

Referenced by gdb_event_loop.

char* int2hex int   
 

void set_debug_traps  
 

Definition at line 528 of file debug.c.


Variable Documentation

exception_t default_trap_hook
 

Definition at line 37 of file debug.h.

Referenced by set_debug_traps.

const char hexchars[] = "0123456789abcdef" [static]
 

Definition at line 30 of file debug.h.

char packet_in_buf[BUFMAX]
 

packet buffer for debug.c.

Definition at line 154 of file debug.h.

int packet_index
 

packet index for debug.c.

Definition at line 156 of file debug.h.

char packet_out_buf[BUFMAX]
 

packet buffer for debug.c.

Definition at line 155 of file debug.h.


Generated on Thu Feb 20 15:38:56 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002