Rizin
unix-like reverse engineering framework and cli tools
|
#include "common_windows.h"
Go to the source code of this file.
Functions | |
RzDebugReasonType | windows_exception_to_reason (ut32 exception_code) |
static const char * | get_exception_name (ut32 ExceptionCode) |
bool | windows_is_exception_fatal (ut32 exception_code) |
void | windows_print_exception_event (ut32 pid, ut32 tid, ut32 exception_code, bool second_chance) |
#define CONTROL_C_EXIT 0x40010005 |
Definition at line 29 of file common_windows.c.
#define DBG_CONTROL_BREAK 0x40010008 |
Definition at line 30 of file common_windows.c.
#define EXCEPTION_ACCESS_VIOLATION 0xC0000005 |
Definition at line 6 of file common_windows.c.
#define EXCEPTION_ARRAY_BOUNDS_EXCEEDED 0xC000008C |
Definition at line 10 of file common_windows.c.
#define EXCEPTION_BREAKPOINT 0x80000003 |
Definition at line 8 of file common_windows.c.
#define EXCEPTION_DATATYPE_MISALIGNMENT 0x80000002 |
Definition at line 7 of file common_windows.c.
#define EXCEPTION_FLT_DENORMAL_OPERAND 0xC000008D |
Definition at line 11 of file common_windows.c.
#define EXCEPTION_FLT_DIVIDE_BY_ZERO 0xC000008E |
Definition at line 12 of file common_windows.c.
#define EXCEPTION_FLT_INEXACT_RESULT 0xC000008F |
Definition at line 13 of file common_windows.c.
#define EXCEPTION_FLT_INVALID_OPERATION 0xC0000090 |
Definition at line 14 of file common_windows.c.
#define EXCEPTION_FLT_OVERFLOW 0xC0000091 |
Definition at line 15 of file common_windows.c.
#define EXCEPTION_FLT_STACK_CHECK 0xC0000092 |
Definition at line 16 of file common_windows.c.
#define EXCEPTION_FLT_UNDERFLOW 0xC0000093 |
Definition at line 17 of file common_windows.c.
#define EXCEPTION_GUARD_PAGE 0x80000001 |
Definition at line 26 of file common_windows.c.
#define EXCEPTION_ILLEGAL_INSTRUCTION 0xC000001D |
Definition at line 22 of file common_windows.c.
#define EXCEPTION_IN_PAGE_ERROR 0xC0000006 |
Definition at line 21 of file common_windows.c.
#define EXCEPTION_INT_DIVIDE_BY_ZERO 0xC0000094 |
Definition at line 18 of file common_windows.c.
#define EXCEPTION_INT_OVERFLOW 0xC0000095 |
Definition at line 19 of file common_windows.c.
#define EXCEPTION_INVALID_DISPOSITION 0xC0000026 |
Definition at line 25 of file common_windows.c.
#define EXCEPTION_INVALID_HANDLE 0xC0000008 |
Definition at line 27 of file common_windows.c.
#define EXCEPTION_NONCONTINUABLE_EXCEPTION 0xC0000025 |
Definition at line 23 of file common_windows.c.
#define EXCEPTION_POSSIBLE_DEADLOCK 0xC0000194 |
Definition at line 28 of file common_windows.c.
#define EXCEPTION_PRIV_INSTRUCTION 0xC0000096 |
Definition at line 20 of file common_windows.c.
#define EXCEPTION_SINGLE_STEP 0x80000004 |
Definition at line 9 of file common_windows.c.
#define EXCEPTION_STACK_OVERFLOW 0xC00000FD |
Definition at line 24 of file common_windows.c.
#define STATUS_UNWIND_CONSOLIDATE 0x80000029 |
Definition at line 31 of file common_windows.c.
Definition at line 59 of file common_windows.c.
References CONTROL_C_EXIT, DBG_CONTROL_BREAK, EXCEPTION_ACCESS_VIOLATION, EXCEPTION_ARRAY_BOUNDS_EXCEEDED, EXCEPTION_BREAKPOINT, EXCEPTION_DATATYPE_MISALIGNMENT, EXCEPTION_FLT_DENORMAL_OPERAND, EXCEPTION_FLT_DIVIDE_BY_ZERO, EXCEPTION_FLT_INEXACT_RESULT, EXCEPTION_FLT_INVALID_OPERATION, EXCEPTION_FLT_OVERFLOW, EXCEPTION_FLT_STACK_CHECK, EXCEPTION_FLT_UNDERFLOW, EXCEPTION_GUARD_PAGE, EXCEPTION_ILLEGAL_INSTRUCTION, EXCEPTION_IN_PAGE_ERROR, EXCEPTION_INT_DIVIDE_BY_ZERO, EXCEPTION_INT_OVERFLOW, EXCEPTION_INVALID_DISPOSITION, EXCEPTION_INVALID_HANDLE, EXCEPTION_NONCONTINUABLE_EXCEPTION, EXCEPTION_POSSIBLE_DEADLOCK, EXCEPTION_PRIV_INSTRUCTION, EXCEPTION_SINGLE_STEP, EXCEPTION_STACK_OVERFLOW, EXCEPTION_STR, and STATUS_UNWIND_CONSOLIDATE.
Referenced by windows_print_exception_event().
RzDebugReasonType windows_exception_to_reason | ( | ut32 | exception_code | ) |
Definition at line 33 of file common_windows.c.
References EXCEPTION_ACCESS_VIOLATION, EXCEPTION_BREAKPOINT, EXCEPTION_FLT_DENORMAL_OPERAND, EXCEPTION_FLT_DIVIDE_BY_ZERO, EXCEPTION_FLT_INEXACT_RESULT, EXCEPTION_FLT_INVALID_OPERATION, EXCEPTION_FLT_OVERFLOW, EXCEPTION_FLT_STACK_CHECK, EXCEPTION_FLT_UNDERFLOW, EXCEPTION_GUARD_PAGE, EXCEPTION_ILLEGAL_INSTRUCTION, EXCEPTION_INT_DIVIDE_BY_ZERO, EXCEPTION_SINGLE_STEP, RZ_DEBUG_REASON_BREAKPOINT, RZ_DEBUG_REASON_DIVBYZERO, RZ_DEBUG_REASON_FPU, RZ_DEBUG_REASON_ILLEGAL, RZ_DEBUG_REASON_SEGFAULT, RZ_DEBUG_REASON_STEP, and RZ_DEBUG_REASON_TRAP.
Referenced by rz_debug_winkd_wait(), and w32_dbg_wait().
Definition at line 97 of file common_windows.c.
References EXCEPTION_ACCESS_VIOLATION, EXCEPTION_ARRAY_BOUNDS_EXCEEDED, EXCEPTION_FLT_STACK_CHECK, EXCEPTION_GUARD_PAGE, EXCEPTION_ILLEGAL_INSTRUCTION, EXCEPTION_IN_PAGE_ERROR, EXCEPTION_INT_DIVIDE_BY_ZERO, EXCEPTION_NONCONTINUABLE_EXCEPTION, EXCEPTION_PRIV_INSTRUCTION, and EXCEPTION_STACK_OVERFLOW.
Referenced by w32_dbg_wait(), and windows_print_exception_event().
Definition at line 115 of file common_windows.c.
References get_exception_name(), PFMT32u, pid, RZ_LOG_INFO, RZ_LOG_WARN, and windows_is_exception_fatal().
Referenced by rz_debug_winkd_wait(), and w32_dbg_wait().