ReactOS 0.4.16-dev-340-g0540c21
|
Go to the source code of this file.
Macros | |
#define | BUFMAX 400 |
#define | NUMREGS 16 |
#define | NUMREGBYTES (NUMREGS * 4) |
#define | STACKSIZE 10000 |
#define | SAVE_REGISTERS1() |
#define | SAVE_ERRCODE() |
#define | SAVE_REGISTERS2() |
#define | CHECK_FAULT() |
#define | CALL_HOOK() asm("call _remcomHandler"); |
#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 ("ret") | |
asm (" iret") | |
asm ("mem_fault:") | |
asm (" popl %eax") | |
asm (" movl %eax, _gdb_i386errcode") | |
asm (" popl %ecx") | |
asm (" popl %edx") | |
asm (" leave") | |
asm (" pushl %edx") | |
asm (" pushl %ecx") | |
asm (" movl %eax, _mem_fault_routine") | |
asm ("iret") | |
void | _catchException3 () |
asm (".globl __catchException3") | |
asm ("__catchException3:") | |
asm ("pushl $3") | |
void | _catchException1 () |
asm (".globl __catchException1") | |
asm ("__catchException1:") | |
asm ("pushl $1") | |
void | _catchException0 () |
asm (".globl __catchException0") | |
asm ("__catchException0:") | |
asm ("pushl $0") | |
void | _catchException4 () |
asm (".globl __catchException4") | |
asm ("__catchException4:") | |
asm ("pushl $4") | |
void | _catchException5 () |
asm (".globl __catchException5") | |
asm ("__catchException5:") | |
asm ("pushl $5") | |
void | _catchException6 () |
asm (".globl __catchException6") | |
asm ("__catchException6:") | |
asm ("pushl $6") | |
void | _catchException7 () |
asm (".globl __catchException7") | |
asm ("__catchException7:") | |
asm ("pushl $7") | |
void | _catchException8 () |
asm (".globl __catchException8") | |
asm ("__catchException8:") | |
asm ("pushl $8") | |
void | _catchException9 () |
asm (".globl __catchException9") | |
asm ("__catchException9:") | |
asm ("pushl $9") | |
void | _catchException10 () |
asm (".globl __catchException10") | |
asm ("__catchException10:") | |
asm ("pushl $10") | |
void | _catchException12 () |
asm (".globl __catchException12") | |
asm ("__catchException12:") | |
asm ("pushl $12") | |
void | _catchException16 () |
asm (".globl __catchException16") | |
asm ("__catchException16:") | |
asm ("pushl $16") | |
void | _catchException13 () |
asm (".globl __catchException13") | |
asm ("__catchException13:") | |
asm ("pushl $13") | |
void | _catchException11 () |
asm (".globl __catchException11") | |
asm ("__catchException11:") | |
asm ("pushl $11") | |
void | _catchException14 () |
asm (".globl __catchException14") | |
asm ("__catchException14:") | |
asm ("pushl $14") | |
asm ("_remcomHandler:") | |
asm (" movl _stackPtr, %esp") | |
asm (" call _handle_exception") | |
void | _returnFromException () |
int | hex (char ch) |
char * | getpacket (void) |
void | putpacket (char *buffer) |
void | debug_error (char *format) |
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 (int exceptionVector) |
void | set_debug_traps (void) |
void | breakpoint (void) |
Variables | |
static char | initialized |
int | remote_debug |
static const char | hexchars [] ="0123456789abcdef" |
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] |
static void(*volatile | mem_fault_routine )() = NULL |
static volatile int | mem_err = 0 |
Definition at line 456 of file i386-stub-win32.c.
#define BUFMAX 400 |
Definition at line 109 of file i386-stub-win32.c.
CALL_HOOK | ( | ) | asm("call _remcomHandler"); |
Definition at line 260 of file i386-stub-win32.c.
CHECK_FAULT | ( | ) |
Definition at line 225 of file i386-stub-win32.c.
Definition at line 122 of file i386-stub-win32.c.
#define NUMREGS 16 |
Definition at line 119 of file i386-stub-win32.c.
SAVE_ERRCODE | ( | ) |
Definition at line 208 of file i386-stub-win32.c.
SAVE_REGISTERS1 | ( | ) |
Definition at line 191 of file i386-stub-win32.c.
SAVE_REGISTERS2 | ( | ) |
Definition at line 211 of file i386-stub-win32.c.
#define STACKSIZE 10000 |
Definition at line 136 of file i386-stub-win32.c.
Enumerator | |
---|---|
EAX | |
ECX | |
EDX | |
EBX | |
ESP | |
EBP | |
ESI | |
EDI | |
PC | |
PS | |
CS | |
SS | |
DS | |
ES | |
FS | |
GS |
Definition at line 124 of file i386-stub-win32.c.
void _catchException0 | ( | ) |
Referenced by set_debug_traps().
void _catchException1 | ( | ) |
Referenced by set_debug_traps().
void _catchException10 | ( | ) |
Referenced by set_debug_traps().
void _catchException11 | ( | ) |
Referenced by set_debug_traps().
void _catchException12 | ( | ) |
Referenced by set_debug_traps().
void _catchException13 | ( | ) |
Referenced by set_debug_traps().
void _catchException14 | ( | ) |
Referenced by set_debug_traps().
void _catchException16 | ( | ) |
Referenced by set_debug_traps().
void _catchException3 | ( | ) |
Referenced by set_debug_traps().
void _catchException4 | ( | ) |
Referenced by set_debug_traps().
void _catchException5 | ( | ) |
Referenced by set_debug_traps().
void _catchException6 | ( | ) |
Referenced by set_debug_traps().
void _catchException7 | ( | ) |
Referenced by set_debug_traps().
void _catchException8 | ( | ) |
Referenced by set_debug_traps().
void _catchException9 | ( | ) |
Referenced by set_debug_traps().
void _returnFromException | ( | ) |
Definition at line 445 of file i386-stub-win32.c.
Referenced by handle_exception().
asm | ( | " call _handle_exception" | ) |
asm | ( | " movl | _stackPtr, |
%esp" | |||
) |
asm | ( | " iret" | ) |
asm | ( | " movl _registers+ | 12, |
%ebx" | |||
) |
asm | ( | " movl _registers+ | 16, |
%esp" | |||
) |
asm | ( | " movl _registers+ | 20, |
%ebp" | |||
) |
asm | ( | " movl _registers+ | 24, |
%esi" | |||
) |
asm | ( | " movl _registers+ | 28, |
%edi" | |||
) |
asm | ( | " movl _registers+ | 36, |
%eax" | |||
) |
asm | ( | " movl _registers+ | 4, |
%ecx" | |||
) |
asm | ( | " movl _registers+ | 8, |
%edx" | |||
) |
asm | ( | " movl | _registers, |
%eax" | |||
) |
asm | ( | " movw _registers+ | 44, |
%ss" | |||
) |
asm | ( | " movw _registers+ | 48, |
%ds" | |||
) |
asm | ( | " movw _registers+ | 52, |
%es" | |||
) |
asm | ( | " movw _registers+ | 56, |
%fs" | |||
) |
asm | ( | " movw _registers+ | 60, |
%gs" | |||
) |
asm | ( | " pushl %eax" | ) |
asm | ( | " leave" | ) |
asm | ( | " movl % | eax, |
_gdb_i386errcode" | |||
) |
asm | ( | " movl % | eax, |
_mem_fault_routine" | |||
) |
asm | ( | " popl %eax" | ) |
asm | ( | " popl %ecx" | ) |
asm | ( | " popl %edx" | ) |
asm | ( | " pushl %ecx" | ) |
asm | ( | " pushl %edx" | ) |
asm | ( | ".globl __catchException0" | ) |
asm | ( | ".globl __catchException1" | ) |
asm | ( | ".globl __catchException10" | ) |
asm | ( | ".globl __catchException11" | ) |
asm | ( | ".globl __catchException12" | ) |
asm | ( | ".globl __catchException13" | ) |
asm | ( | ".globl __catchException14" | ) |
asm | ( | ".globl __catchException16" | ) |
asm | ( | ".globl __catchException3" | ) |
asm | ( | ".globl __catchException4" | ) |
asm | ( | ".globl __catchException5" | ) |
asm | ( | ".globl __catchException6" | ) |
asm | ( | ".globl __catchException7" | ) |
asm | ( | ".globl __catchException8" | ) |
asm | ( | ".globl __catchException9" | ) |
asm | ( | ".globl _return_to_prog" | ) |
asm | ( | ".text" | ) |
asm | ( | "__catchException0:" | ) |
asm | ( | "__catchException10:" | ) |
asm | ( | "__catchException11:" | ) |
asm | ( | "__catchException12:" | ) |
asm | ( | "__catchException13:" | ) |
asm | ( | "__catchException14:" | ) |
asm | ( | "__catchException16:" | ) |
asm | ( | "__catchException1:" | ) |
asm | ( | "__catchException3:" | ) |
asm | ( | "__catchException4:" | ) |
asm | ( | "__catchException5:" | ) |
asm | ( | "__catchException6:" | ) |
asm | ( | "__catchException7:" | ) |
asm | ( | "__catchException8:" | ) |
asm | ( | "__catchException9:" | ) |
asm | ( | "_remcomHandler:" | ) |
asm | ( | "_return_to_prog:" | ) |
asm | ( | "iret" | ) |
asm | ( | "mem_fault:" | ) |
asm | ( | "pushl $0" | ) |
asm | ( | "pushl $1" | ) |
asm | ( | "pushl $10" | ) |
asm | ( | "pushl $11" | ) |
asm | ( | "pushl $12" | ) |
asm | ( | "pushl $13" | ) |
asm | ( | "pushl $14" | ) |
asm | ( | "pushl $16" | ) |
asm | ( | "pushl $3" | ) |
asm | ( | "pushl $4" | ) |
asm | ( | "pushl $5" | ) |
asm | ( | "pushl $6" | ) |
asm | ( | "pushl $7" | ) |
asm | ( | "pushl $8" | ) |
asm | ( | "pushl $9" | ) |
asm | ( | "ret" | ) |
Definition at line 1043 of file i386-stub-win32.c.
Referenced by DECLARE_INTERFACE_(), and xmlInitMemory().
Definition at line 745 of file i386-stub-win32.c.
Referenced by handle_exception().
Definition at line 630 of file i386-stub-win32.c.
Referenced by handle_exception().
void exceptionHandler | ( | ) |
Referenced by set_debug_traps().
Definition at line 654 of file i386-stub-win32.c.
Referenced by mem2hex().
int getDebugChar | ( | ) |
Referenced by getpacket(), and putpacket().
Definition at line 530 of file i386-stub-win32.c.
Referenced by handle_exception().
Definition at line 834 of file i386-stub-win32.c.
Definition at line 512 of file i386-stub-win32.c.
Referenced by copyfont(), decode_url(), default_dbgstr_an(), RequestHandler::dump_one_line(), dump_shell_namespace(), dumpmem(), escape_string(), export_hex_data_type(), getpacket(), hash_dib(), hex(), hex2mem(), hex_to_address(), hex_to_tid(), HEXEDIT_PaintLines(), hexToInt(), NumPutGetTest::inhex(), loose_hex_to_rgb(), ME_StreamOutHexData(), NumPutGetTest::num_get_integer(), NumPutGetTest::num_put_integer(), print_operand_value(), PROPVAR_HexToNum(), test__strtoi64(), test__wcstoi64(), test_basic_import(), test_basic_import_unicode(), test_export(), test_import(), test_unicode_import(), test_value_deletion(), test_value_deletion_unicode(), wine_dbgstr_an(), wine_debugstr_an(), and xmlParseReference().
Definition at line 705 of file i386-stub-win32.c.
Referenced by handle_exception().
Definition at line 806 of file i386-stub-win32.c.
Referenced by handle_exception().
Definition at line 670 of file i386-stub-win32.c.
Referenced by handle_exception().
void putDebugChar | ( | ) |
Referenced by getpacket(), and putpacket().
Definition at line 602 of file i386-stub-win32.c.
Referenced by handle_exception().
void return_to_prog | ( | ) |
Referenced by _returnFromException().
Definition at line 660 of file i386-stub-win32.c.
Referenced by hex2mem().
Definition at line 1012 of file i386-stub-win32.c.
Definition at line 644 of file i386-stub-win32.c.
int gdb_i386errcode |
Definition at line 184 of file i386-stub-win32.c.
int gdb_i386vector = -1 |
Definition at line 187 of file i386-stub-win32.c.
Referenced by handle_exception().
Definition at line 116 of file i386-stub-win32.c.
Referenced by handle_exception(), mem2hex(), and putpacket().
|
static |
Definition at line 111 of file i386-stub-win32.c.
Referenced by breakpoint(), and set_debug_traps().
Definition at line 641 of file i386-stub-win32.c.
Referenced by handle_exception(), hex2mem(), mem2hex(), and set_mem_err().
Definition at line 637 of file i386-stub-win32.c.
Definition at line 132 of file i386-stub-win32.c.
Referenced by dwarfargvalue(), dwarfcomputecfa(), dwarfgetarg(), dwarfregunwind(), handle_exception(), and RosSymGetAddressInformation().
Definition at line 524 of file i386-stub-win32.c.
Referenced by getpacket().
Definition at line 525 of file i386-stub-win32.c.
Referenced by handle_exception().
Definition at line 137 of file i386-stub-win32.c.
Referenced by set_debug_traps().
int remote_debug |
Definition at line 113 of file i386-stub-win32.c.
Referenced by debug_error(), getpacket(), and handle_exception().
|
static |
Definition at line 138 of file i386-stub-win32.c.
Referenced by set_debug_traps().