mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-20 21:10:16 -08:00
sketch out linux non-host layer, for mapping numeric exception codes to metadata on debugger frontend. also do not always call XQueryKeymap/XQueryPointer; these are very expensive and we only use them in scenarios where we can take the most recently cached value from events.
This commit is contained in:
1 parent
8c1c35508a
commit
a256e5c48a
19 files changed
+503
-90
No files matched your search
@@ -0,0 +1,176 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
//- GENERATED CODE
|
||||
|
||||
C_LINKAGE_BEGIN
|
||||
U32 w32_exception_code_kind_code_table[38] =
|
||||
{
|
||||
0,
|
||||
0x40010005,
|
||||
0x40010008,
|
||||
0x40080201,
|
||||
0x40080202,
|
||||
0x0000071a,
|
||||
0x80000002,
|
||||
0xc0000005,
|
||||
0xc0000006,
|
||||
0xc0000008,
|
||||
0xc0000017,
|
||||
0xc000001d,
|
||||
0xc0000025,
|
||||
0xc0000026,
|
||||
0xc000008c,
|
||||
0xc000008d,
|
||||
0xc000008e,
|
||||
0xc000008f,
|
||||
0xc0000090,
|
||||
0xc0000091,
|
||||
0xc0000092,
|
||||
0xc0000093,
|
||||
0xc0000094,
|
||||
0xc0000095,
|
||||
0xc0000096,
|
||||
0xc00000fd,
|
||||
0xc0000135,
|
||||
0xc0000138,
|
||||
0xc0000139,
|
||||
0xc0000142,
|
||||
0xc00002b4,
|
||||
0xc00002b5,
|
||||
0xc0000420,
|
||||
0xc06d007e,
|
||||
0xc06d007f,
|
||||
0xe073616e,
|
||||
0xe0736171,
|
||||
0x0000087a,
|
||||
};
|
||||
|
||||
String8 w32_exception_code_kind_display_string_table[38] =
|
||||
{
|
||||
{0},
|
||||
str8_lit_comp("Control-C"),
|
||||
str8_lit_comp("Control-Break"),
|
||||
str8_lit_comp("WinRT Originate Error"),
|
||||
str8_lit_comp("WinRT Transform Error"),
|
||||
str8_lit_comp("RPC Call Cancelled"),
|
||||
str8_lit_comp("Data Type Misalignment"),
|
||||
str8_lit_comp("Access Violation"),
|
||||
str8_lit_comp("In Page Error"),
|
||||
str8_lit_comp("Invalid Handle Specified"),
|
||||
str8_lit_comp("Not Enough Quota"),
|
||||
str8_lit_comp("Illegal Instruction"),
|
||||
str8_lit_comp("Cannot Continue From Exception"),
|
||||
str8_lit_comp("Invalid Exception Disposition Returned By Handler"),
|
||||
str8_lit_comp("Array Bounds Exceeded"),
|
||||
str8_lit_comp("Floating-Point Denormal Operand"),
|
||||
str8_lit_comp("Floating-Point Division By Zero"),
|
||||
str8_lit_comp("Floating-Point Inexact Result"),
|
||||
str8_lit_comp("Floating-Point Invalid Operation"),
|
||||
str8_lit_comp("Floating-Point Overflow"),
|
||||
str8_lit_comp("Floating-Point Stack Check"),
|
||||
str8_lit_comp("Floating-Point Underflow"),
|
||||
str8_lit_comp("Integer Division By Zero"),
|
||||
str8_lit_comp("Integer Overflow"),
|
||||
str8_lit_comp("Privileged Instruction"),
|
||||
str8_lit_comp("Stack Overflow"),
|
||||
str8_lit_comp("Unable To Locate DLL"),
|
||||
str8_lit_comp("Ordinal Not Found"),
|
||||
str8_lit_comp("Entry Point Not Found"),
|
||||
str8_lit_comp("DLL Initialization Failed"),
|
||||
str8_lit_comp("Floating Point SSE Multiple Faults"),
|
||||
str8_lit_comp("Floating Point SSE Multiple Traps"),
|
||||
str8_lit_comp("Assertion Failed"),
|
||||
str8_lit_comp("Module Not Found"),
|
||||
str8_lit_comp("Procedure Not Found"),
|
||||
str8_lit_comp("Sanitizer Error Detected"),
|
||||
str8_lit_comp("Sanitizer Raw Access Violation"),
|
||||
str8_lit_comp("DirectX Debug Layer"),
|
||||
};
|
||||
|
||||
String8 w32_exception_code_kind_lowercase_code_string_table[38] =
|
||||
{
|
||||
{0},
|
||||
str8_lit_comp("ctrl_c"),
|
||||
str8_lit_comp("ctrl_break"),
|
||||
str8_lit_comp("win_rt_originate_error"),
|
||||
str8_lit_comp("win_rt_transform_error"),
|
||||
str8_lit_comp("rpc_call_cancelled"),
|
||||
str8_lit_comp("datatype_misalignment"),
|
||||
str8_lit_comp("access_violation"),
|
||||
str8_lit_comp("in_page_error"),
|
||||
str8_lit_comp("invalid_handle"),
|
||||
str8_lit_comp("not_enough_quota"),
|
||||
str8_lit_comp("illegal_instruction"),
|
||||
str8_lit_comp("cannot_continue_exception"),
|
||||
str8_lit_comp("invalid_exception_disposition"),
|
||||
str8_lit_comp("array_bounds_exceeded"),
|
||||
str8_lit_comp("floating_point_denormal_operand"),
|
||||
str8_lit_comp("floating_point_division_by_zero"),
|
||||
str8_lit_comp("floating_point_inexact_result"),
|
||||
str8_lit_comp("floating_point_invalid_operation"),
|
||||
str8_lit_comp("floating_point_overflow"),
|
||||
str8_lit_comp("floating_point_stack_check"),
|
||||
str8_lit_comp("floating_point_underflow"),
|
||||
str8_lit_comp("integer_division_by_zero"),
|
||||
str8_lit_comp("integer_overflow"),
|
||||
str8_lit_comp("privileged_instruction"),
|
||||
str8_lit_comp("stack_overflow"),
|
||||
str8_lit_comp("unable_to_locate_dll"),
|
||||
str8_lit_comp("ordinal_not_found"),
|
||||
str8_lit_comp("entry_point_not_found"),
|
||||
str8_lit_comp("dll_initialization_failed"),
|
||||
str8_lit_comp("floating_point_sse_multiple_faults"),
|
||||
str8_lit_comp("floating_point_sse_multiple_traps"),
|
||||
str8_lit_comp("assertion_failed"),
|
||||
str8_lit_comp("module_not_found"),
|
||||
str8_lit_comp("procedure_not_found"),
|
||||
str8_lit_comp("sanitizer_error_detected"),
|
||||
str8_lit_comp("sanitizer_raw_access_violation"),
|
||||
str8_lit_comp("directx_debug_layer"),
|
||||
};
|
||||
|
||||
B8 w32_exception_code_kind_default_enable_table[38] =
|
||||
{
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
};
|
||||
|
||||
C_LINKAGE_END
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
//- GENERATED CODE
|
||||
|
||||
#ifndef WIN32_META_H
|
||||
#define WIN32_META_H
|
||||
|
||||
typedef enum W32_ExceptionCodeKind
|
||||
{
|
||||
W32_ExceptionCodeKind_Null,
|
||||
W32_ExceptionCodeKind_CtrlC,
|
||||
W32_ExceptionCodeKind_CtrlBreak,
|
||||
W32_ExceptionCodeKind_WinRTOriginateError,
|
||||
W32_ExceptionCodeKind_WinRTTransformError,
|
||||
W32_ExceptionCodeKind_RPCCallCancelled,
|
||||
W32_ExceptionCodeKind_DatatypeMisalignment,
|
||||
W32_ExceptionCodeKind_AccessViolation,
|
||||
W32_ExceptionCodeKind_InPageError,
|
||||
W32_ExceptionCodeKind_InvalidHandle,
|
||||
W32_ExceptionCodeKind_NotEnoughQuota,
|
||||
W32_ExceptionCodeKind_IllegalInstruction,
|
||||
W32_ExceptionCodeKind_CannotContinueException,
|
||||
W32_ExceptionCodeKind_InvalidExceptionDisposition,
|
||||
W32_ExceptionCodeKind_ArrayBoundsExceeded,
|
||||
W32_ExceptionCodeKind_FloatingPointDenormalOperand,
|
||||
W32_ExceptionCodeKind_FloatingPointDivisionByZero,
|
||||
W32_ExceptionCodeKind_FloatingPointInexactResult,
|
||||
W32_ExceptionCodeKind_FloatingPointInvalidOperation,
|
||||
W32_ExceptionCodeKind_FloatingPointOverflow,
|
||||
W32_ExceptionCodeKind_FloatingPointStackCheck,
|
||||
W32_ExceptionCodeKind_FloatingPointUnderflow,
|
||||
W32_ExceptionCodeKind_IntegerDivisionByZero,
|
||||
W32_ExceptionCodeKind_IntegerOverflow,
|
||||
W32_ExceptionCodeKind_PrivilegedInstruction,
|
||||
W32_ExceptionCodeKind_StackOverflow,
|
||||
W32_ExceptionCodeKind_UnableToLocateDLL,
|
||||
W32_ExceptionCodeKind_OrdinalNotFound,
|
||||
W32_ExceptionCodeKind_EntryPointNotFound,
|
||||
W32_ExceptionCodeKind_DLLInitializationFailed,
|
||||
W32_ExceptionCodeKind_FloatingPointSSEMultipleFaults,
|
||||
W32_ExceptionCodeKind_FloatingPointSSEMultipleTraps,
|
||||
W32_ExceptionCodeKind_AssertionFailed,
|
||||
W32_ExceptionCodeKind_ModuleNotFound,
|
||||
W32_ExceptionCodeKind_ProcedureNotFound,
|
||||
W32_ExceptionCodeKind_SanitizerErrorDetected,
|
||||
W32_ExceptionCodeKind_SanitizerRawAccessViolation,
|
||||
W32_ExceptionCodeKind_DirectXDebugLayer,
|
||||
W32_ExceptionCodeKind_COUNT,
|
||||
} W32_ExceptionCodeKind;
|
||||
|
||||
C_LINKAGE_BEGIN
|
||||
extern U32 w32_exception_code_kind_code_table[38];
|
||||
extern String8 w32_exception_code_kind_display_string_table[38];
|
||||
extern String8 w32_exception_code_kind_lowercase_code_string_table[38];
|
||||
extern B8 w32_exception_code_kind_default_enable_table[38];
|
||||
|
||||
C_LINKAGE_END
|
||||
|
||||
#endif // WIN32_META_H
|
||||
Reference in new issue
Block a user