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...
|