MicrOS
|
Macros | |
#define | BUFMAX 400 |
#define | NUMREGS 16 |
#define | NUMREGBYTES (NUMREGS * 4) |
#define | STACKSIZE 10000 |
#define | BREAKPOINT() asm(" int $3"); |
Enumerations | |
enum | regnames { EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, PC, PS, CS, SS, DS, ES, FS, GS } |
Functions | |
void | putDebugChar () |
int | getDebugChar () |
void | exceptionHandler () |
void | return_to_prog () |
asm (".text") | |
asm (".globl return_to_prog") | |
asm ("return_to_prog:") | |
asm (" movw registers+44, %ss") | |
asm (" movl registers+16, %esp") | |
asm (" movl registers+4, %ecx") | |
asm (" movl registers+8, %edx") | |
asm (" movl registers+12, %ebx") | |
asm (" movl registers+20, %ebp") | |
asm (" movl registers+24, %esi") | |
asm (" movl registers+28, %edi") | |
asm (" movw registers+48, %ds") | |
asm (" movw registers+52, %es") | |
asm (" movw registers+56, %fs") | |
asm (" movw registers+60, %gs") | |
asm (" movl registers+36, %eax") | |
asm (" pushl %eax") | |
asm (" movl registers, %eax") | |
asm (" iret") | |
void | _returnFromException () |
int | hex (char ch) |
unsigned char * | getpacket (void) |
void | putpacket (unsigned char *buffer) |
void | debug_error (char *format, char *parm) |
void | set_mem_err (void) |
int | get_char (char *addr) |
void | set_char (char *addr, int val) |
char * | mem2hex (char *mem, char *buf, int count, int may_fault) |
char * | hex2mem (char *buf, char *mem, int count, int may_fault) |
int | computeSignal (int exceptionVector) |
int | hexToInt (char **ptr, int *intValue) |
void | handle_exception (exception_state *state) |
void | set_debug_traps (void) |
void | breakpoint (void) |
Variables | |
static char | initialized |
int | remote_debug |
static const char | hexchars [] ="0123456789abcdef" |
unsigned int | registers [NUMREGS] |
int | remcomStack [STACKSIZE/sizeof(int)] |
static int * | stackPtr = &remcomStack[STACKSIZE/sizeof(int) - 1] |
int | gdb_i386errcode |
int | gdb_i386vector = -1 |
static char | remcomInBuffer [BUFMAX] |
static char | remcomOutBuffer [BUFMAX] |
void(*volatile | mem_fault_routine )() = NULL |
volatile int | mem_err = 0 |
#define BREAKPOINT | ( | ) | asm(" int $3"); |
#define BUFMAX 400 |
#define NUMREGBYTES (NUMREGS * 4) |
#define NUMREGS 16 |
#define STACKSIZE 10000 |
enum regnames |
void _returnFromException | ( | ) |
asm | ( | ".text" | ) |
asm | ( | ".globl return_to_prog" | ) |
asm | ( | "return_to_prog:" | ) |
asm | ( | " movw registers+ | 44, |
%ss" | |||
) |
asm | ( | " movl registers+ | 16, |
%esp" | |||
) |
asm | ( | " movl registers+ | 4, |
%ecx" | |||
) |
asm | ( | " movl registers+ | 8, |
%edx" | |||
) |
asm | ( | " movl registers+ | 12, |
%ebx" | |||
) |
asm | ( | " movl registers+ | 20, |
%ebp" | |||
) |
asm | ( | " movl registers+ | 24, |
%esi" | |||
) |
asm | ( | " movl registers+ | 28, |
%edi" | |||
) |
asm | ( | " movw registers+ | 48, |
%ds" | |||
) |
asm | ( | " movw registers+ | 52, |
%es" | |||
) |
asm | ( | " movw registers+ | 56, |
%fs" | |||
) |
asm | ( | " movw registers+ | 60, |
%gs" | |||
) |
asm | ( | " movl registers+ | 36, |
%eax" | |||
) |
asm | ( | " pushl %eax" | ) |
asm | ( | " movl | registers, |
%eax" | |||
) |
asm | ( | " iret" | ) |
void breakpoint | ( | void | ) |
int computeSignal | ( | int | exceptionVector | ) |
void debug_error | ( | char * | format, |
char * | parm | ||
) |
void exceptionHandler | ( | ) |
int get_char | ( | char * | addr | ) |
int getDebugChar | ( | ) |
unsigned char* getpacket | ( | void | ) |
void handle_exception | ( | exception_state * | state | ) |
int hex | ( | char | ch | ) |
char* hex2mem | ( | char * | buf, |
char * | mem, | ||
int | count, | ||
int | may_fault | ||
) |
int hexToInt | ( | char ** | ptr, |
int * | intValue | ||
) |
char* mem2hex | ( | char * | mem, |
char * | buf, | ||
int | count, | ||
int | may_fault | ||
) |
void putDebugChar | ( | ) |
void putpacket | ( | unsigned char * | buffer | ) |
void return_to_prog | ( | ) |
void set_char | ( | char * | addr, |
int | val | ||
) |
void set_debug_traps | ( | void | ) |
void set_mem_err | ( | void | ) |
int gdb_i386errcode |
int gdb_i386vector = -1 |
|
static |
|
static |
volatile int mem_err = 0 |
void(*volatile mem_fault_routine) () = NULL |
unsigned int registers[NUMREGS] |
|
static |
|
static |
int remcomStack[STACKSIZE/sizeof(int)] |
int remote_debug |
|
static |