text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Base Includes #undef LAYER_COLOR #define LAYER_COLOR 0x3399ccff #include "base_core.c" #include "base_profile.c" #include "base_memory.c" #include "base_ar...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef BASE_INC_H #define BASE_INC_H //////////////////////////////// //~ rjf: Base Includes #include "base_context_cracking.h" #include "base_core.h" #include "base_profile.h" #include "base_mem...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Globals/Thread-Locals C_LINKAGE thread_static Log *log_active; #if !BUILD_SUPPLEMENTARY_UNIT C_LINKAGE thread_static Log *log_active = 0; #endif String8 g_logs_folder; ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>define log_user_errorf(...) log_msgf(LogMsgKind_UserError, __VA_ARGS__) #define LogInfoNamedBlock(s) DeferLoop(log_infof("%S:\n{\n", (s)), log_infof("}\n")) #define LogInfoNamedBlockF(...) DeferLoop((log_infof(__VA_ARGS__), log_infof(":\n{\n")), log_infof("}\n")) //////////////////////////////// //~ rjf...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>pensource.org/license/mit/) <|fim_prefix|>// Copyright (c) Epic Ga<|fim_middle|>mes Tools // Licensed under the MIT license (https://o<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef BASE_MARKUP_H #define BASE_MARKUP_H #define RADDBG_MARKUP_IMPLEMENTATION #define RADDBG_MARKUP_VSNPRINTF raddbg_vsnprintf #if OS_LINUX # define RADDBG_MARKUP_STUBS #endif #include "lib_raddb...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> linear.x + 0.5363325363f * linear.y + 0.0514459929f * linear.z); F32 m = (0.2119034982f * linear.x + 0.6806995451f * linear.y + 0.1073969566f * linear.z); F32 s = (0.0883024619f * linear.x + 0.2817188376f * linear.y + 0.6299787005f * linear.z); F32 l_ = cbrt_f32(l); F32 m_ = cbrt_f32(m); F32 s_ =...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyri<|fim_suffix|>nion Vec4F32 { struct { F32 x; F32 y; F32 z; F32 w; }; struct { Vec2F32 xy; Vec2F32 zw; }; struct { Vec3F32 xyz; F32 _z0; }; struct { F32 _x0; Vec3F32 yzw; }; F32 v[4]; }; typedef union Vec4S32 Vec4S32; union Vec4S32...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic <|fim_suffix|>e.org/license/mit/) <|fim_middle|>Games Tools // Licensed under the MIT license (https://opensourc<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> #ifndef BASE_MEMORY_H #define BASE_MEMORY_H //////////////////////////////// //~ rjf: @per_os_impl Platform Memory Allocation //- rjf: basic internal void *reserve_memory(U64 size); internal B32 commit_memory(void *ptr, U64 size); internal void decommit_memory(void *ptr, U64 size); internal void relea...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> = range.max - dst_vaddr; U64 num_bytes_to_read = Min(num_bytes_needed, num_bytes_possible); MemoryCopy((U8 *)dst + (dst_vaddr - range.min), (U8 *)n->v.base + src_off, num_bytes_to_read); dst_vaddr += num_bytes_to_read; } } } U64 bytes_read = (dst_vaddr - range.min); ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>map, Rng1U64 range, void *dst); #define memory_map_read_struct(map, vaddr, ptr) memory_map_read((map), r1u64((vaddr), (vaddr)+sizeof(*(ptr))), (ptr)) #endif // BASE_MEMORY_MAP_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifnde...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Type Info Lookups internal Member * member_from_name(Type *type, String8 name) { Member *member = &member_nil; if(type->members != 0 && name.size != 0) ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>global Type name##__type = {TypeKind_Struct, 0, sizeof(S), &type_nil, str8_lit_comp(#name), {0}, ArrayCount(name##__members), name##__members, __VA_ARGS__} #define ptr_type(name, ti, ...) read_only global Type name = {TypeKind_Ptr, 0, sizeof(void *), (ti), __VA_ARGS__} //////////////////////////////// //...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>// rjf: launch ProcessLaunchParams params = {0}; params.cmd_line = cmdline; params.path = exe_folder; params.inherit_env = 1; params.stdout_file = stdout_handle; process = process_launch(&params); // rjf: close stdout handle { if(stdout_path.size != 0) { ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>{ ProcessNode *next; Process v; }; typedef struct ProcessList ProcessList; struct ProcessList { ProcessNode *first; ProcessNode *last; U64 count; }; typedef struct ProcessLaunchParams ProcessLaunchParams; struct ProcessLaunchParams { String8List cmd_line; String8 path; String8List env; ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #if PROFILE_SPALL internal inline void spall_begin(char *fmt, ...) { if(spall_buffer.data == 0) { spall_buffer.length = MB(1); spall_buffer.data = os_reserve(spall_buffer.length); o...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>*)string.str); \ TM_API_PTR->_tmEnterZoneFast_Core(0, 0, file_id, __LINE__, hash); \ scratch_end(scratch); \ } # define ProfNoteV(...) \ if (TM_API_PTR) { ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Ring Functions internal Ring * make_ring(Arena *arena, U64 size) { Ring *ring = push_array(arena, Ring, 1); ring->size = size; ring->base = push_array...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ead_or_wait((ring), sizeof(*(ptr)), (ptr), (endt_us)) #define guarded_ring_write_string_or_wait(ring, string, endt_us) guarded_ring_write_or_wait((ring), (string).size, (string).str, (endt_us)) #endif // BASE_RING_H <|fim_prefix|>// Copyright (c) Ep<|fim_middle|>ic Games Tools // Licensed under the MIT l...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Co<|fim_suffix|>s Tools // Licensed under the MIT license (https://opensource.org/license/mit/) <|fim_middle|>pyright (c) Epic Game<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>* shared_memory_view_open(SharedMemory handle, Rng1U64 range); internal void shared_memory_view_close(SharedMemory handle, void *ptr, Rng1U64 range); #endif // BASE_SHARED_MEMORY_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/lice...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Character Classification & Conversion Functions internal B32 char_is_space(U8 c) { return (c == ' ' || c == '\n' || c == '\t' || c == '\r' || c == '\f' ||...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>_deserial_find_first_match(String8 string, U64 off, U16 scan_val); internal void * str8_deserial_get_raw_ptr(String8 string, U64 off, U64 size); internal U64 str8_deserial_read_cstr(String8 string, U64 off, String8 *cstr_out); internal U64 str8_deserial_read_windows_utf16_string16(String8 string, U6...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) E<|fim_suffix|> (https://opensource.org/license/mit/) <|fim_middle|>pic Games Tools // Licensed under the MIT license<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef BASE_SYSTEM_H #define BASE_SYSTEM_H typed<|fim_suffix|>///////////////////////////// //~ rjf: @per_os_impl System Info internal SystemInfo *get_system_info(void); #endif // BASE_SYSTEM_H <...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>censed under the MIT license (https://opensource.org/license/mit/) <|fim_prefix|>// Copyright (c) Epic Games Tools<|fim_middle|> // Li<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef BASE_TEST_H #define BASE_TEST_H typedef enum TestStatus { TestStatus_Fail, TestStatus_Crash, TestStatus_Pass, TestStatus_Skip, TestStatus_COUNT } TestStatus; typedef struct TestRe...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>x()); Touch *touch = tctx_thread_local->free_touch; if(touch != 0) { SLLStackPop(tctx_thread_local->free_touch); } else { touch = push_array_no_zero(tctx_thread_local->access_arena, Touch, 1); } MemoryZeroStruct(touch); SLLStackPush(access->top_touch, touch); touch->cv = cv; ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>/ rjf: lane context LaneCtx lane_ctx; // rjf: source location info char *file_name; U64 line_number; // rjf: accesses Arena *access_arena; Access *free_access; Touch *free_touch; // rjf: progress U64 *progress_counter_ptr; U64 *progress_target_ptr; }; //////////////////////...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensou<|fim_suffix|>tx->free_barrier_node; if(n != 0) { SLLStackPop(barrier_tctx->free_barrier_node); } else { n = push_array_no_zero(barrier_tctx->arena, BarrierNode, 1); } MemoryZeroStruct(n); n->count ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>t_rw((cv), (m), (0), (endt)) #define cond_var_wait_rw_w(cv, m, endt) cond_var_wait_rw((cv), (m), (1), (endt)) internal void cond_var_signal(CondVar cv); internal void cond_var_broadcast(CondVar cv); //- rjf: cross-process semaphores internal Semaphore semaphore_alloc(U32 initial_count, U32 max_...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) Test(str8_list_substr) { String8List zero_list = {0}; { String8List list = {0}; str8_list_pushf(arena, &list, "a"); str8_list_pushf(arena, &list, "b"); str8_list_pushf(arena, &...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ Generated Code #include "generated/codeview.meta.c" //////////////////////////////// internal CV_Arch cv_arch_from_coff_machine(COFF_MachineType machine) { CV_Arch arch = ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef CODEVIEW_H #define CODEVIEW_H // https://github.com/microsoft/microsoft-pdb/blob/master/include/cvinfo.h //////////////////////////////// //~ rjf: CodeView Format Shared Types #define CV_M...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) internal String8 cv_string_from_numeric(Arena *arena, CV_NumericParsed num) { String8 result = str8_zero(); switch (num.kind) { case CV_NumericKind_FLOAT16: NotImplemented; break; // TODO: ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the <|fim_suffix|>internal String8 cv_string_from_numeric(Arena *arena, CV_NumericParsed num); #endif // CODEVIEW_DUMP_H <|fim_middle|>MIT license (https://opensource.org/license/mit/) #ifndef CODEVIEW_DUMP_H #define CODEVIEW_DUMP_H <|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> ++ti_idx) { result.v[ti_idx].size = ti_info->offset - cursor; result.v[ti_idx].str = data.str + cursor; cursor = ti_info->offset + sizeof(CV_TypeIndex); } result.v[result.count-1].size = data.size - cursor; result.v[result.count-1].str = data.str + cursor; } e...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>lines_first; CV_C13InlineeLinesParsedNode *inlinee_lines_last; }; typedef struct CV_C13Parsed CV_C13Parsed; struct CV_C13Parsed { // rjf: source data String8 data; // rjf: full sub-section list CV_C13SubSectionNode *first_sub_section; CV_C13SubSectionNode *last_sub_section; U64 ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>b32);}break; case CV_SymKind_LPROC32:{result = sizeof(CV_SymProc32);}break; case CV_SymKind_GPROC32:{result = sizeof(CV_SymProc32);}break; case CV_SymKind_REGREL32:{result = sizeof(CV_SymRegrel32);}break; case CV_SymKind_LTHREAD32:{result = sizeof(CV_SymThread32);}break; case CV_SymKind_GTHREAD32:{result ...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE #ifndef CODEVIEW_META_H #define CODEVIEW_META_H typedef U16 CV_NumericKind; typedef enum CV_NumericKindEnum { CV_NumericKind_CHAR = 0x8000, CV_NumericKind_SHORT = 0x8001, CV_NumericKind_USHORT...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) internal U64 coff_align_size_from_section_flags(COFF_SectionFlags flags) { U32 align = 0; U32 align_index = COFF_SectionFlags_ExtractAlign(flags); switch (align_index) { default: break; ...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef COFF_H #define COFF_H //////////////////////////////// //~ rjf: COFF Format Types read_only global U8 g_coff_big_header_magic[] = { 0xc7, 0xa1, 0xba, 0xd1, 0xee, 0xba, 0xa9, 0x4b, 0xaf, 0x20, 0xfa, 0xf...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> ); rd_printf("Time Stamp: %#x (%S)", header->time_stamp, time_stamp ); rd_printf("Data Size : %#x (%m)", header->data_size, header->data_size); rd_printf("Hint : %u", header->hint_or_ordinal); rd_printf("Type : %u", header->type ); rd_printf("Import By : %...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ring8 raw_data, RD_Option opts); internal void coff_print_obj (Arena *arena, String8List *out, String8 indent, String8 raw_data, RD_Option opts); internal void coff_print_archive (Arena *arena, String8List *out, String8 indent, String8 raw_archive, RD_Option opts); #endif #e...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// <|fim_suffix|>f.c" #include "coff/coff_parse.c" #include "coff/coff_dump.c" <|fim_middle|>Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "coff/cof<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the M<|fim_suffix|>/coff_dump.h" #endif // COFF_INC_H <|fim_middle|>IT license (https://opensource.org/license/mit/) #ifndef COFF_INC_H #define COFF_INC_H #include "coff/coff.h" #include "coff/coff_parse.h" #include "coff<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) internal COFF_LibWriterSymbolNode * coff_lib_writer_symbol_list_push(Arena *arena, COFF_LibWriterSymbolList *list, COFF_LibWriterSymbol symbol) { COFF_LibWriterSymbolNode *node = push_array_no_zero...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> COFF_ImportType import_type); internal String8 coff_lib_writer_serialize(Arena *arena, COFF_LibWriter *lib_writer, COFF_TimeStamp time_stamp, U16 mode, B32 emit_second_member); #endif // COFF_LIB_WRITER_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https:...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> 0, location, (COFF_SymbolType){0}, storage_class); hash_table_push_raw_raw(scr...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef COFF_OBJ_WRITER_H #define COFF_OBJ_WRITER_H typedef enum { COFF_SymbolLocation_Null, COFF_SymbolLocation_Section, COFF_SymbolLocation_Abs, COFF_SymbolLocation_Undef, COFF_SymbolLoc...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>F_Archive_MemberAlign); *offset += read_size; is_parsed = 1; } return is_parsed; } internal U64 coff_thin_archive_member_iter_init(String8 raw_archive) { U64 cursor = raw_archive.size; if (coff_is_thin_archive(raw_archive)) { cursor = sizeof(g_coff_thin_archive_sig); } ret...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ring); internal String8 coff_resource_string_from_str8 (Arena *arena, String8 string); internal String8 coff_resource_number_from_u16 (Arena *arena, U16 number); internal COFF_ResourceID coff_utf8_resource_id_from_utf16(Arena *arena, COFF_ResourceID16 *id_16); internal U64 ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) internal CFG_KeyMap * cfg_key_map_from_cfg(Arena *arena) { Temp scratch = scratch_begin(&arena, 1); CFG_KeyMap *key_map = push_array(arena, CFG_KeyMap, 1); { key_map->name_slots_count = 409...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> typedef struct CFG_KeyMapNode CFG_KeyMapNode; struct CFG_KeyMapNode { CFG_KeyMapNode *name_hash_next; CFG_KeyMapNode *binding_hash_next; CFG_ID cfg_id; String8 name; CFG_Binding binding; }; typedef struct CFG_KeyMapNodePtr CFG_KeyMapNodePtr; struct CFG_KeyMapNodePtr { CFG_KeyMapNodePtr *next...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>fmt, ...) { Temp scratch = scratch_begin(0, 0); va_list args; va_start(args, fmt); String8 string = push_str8fv(scratch.arena, fmt, args); cfg_node_equip_string(state, node, string); va_end(args); scratch_end(scratch); } internal void cfg_node_insert_child(CFG_State *state, CFG_Node *parent...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> internal CFG_Node *cfg_node_newf(CFG_State *state, CFG_Node *parent, char *fmt, ...); internal CFG_Node *cfg_node_new_replace(CFG_State *state, CFG_Node *parent, String8 string); internal CFG_Node *cfg_node_new_replacef(CFG_State *state, CFG_Node *parent, char *fmt, ...); internal CFG_Node *cfg_node_deep...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "config_core.c" #include "config_panels.c" #if defined(WINDOW_MANAGER_H) # include "config_bindings.c" #endif <|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef<|fim_suffix|>OW_MANAGER_H) # include "config_bindings.h" #endif #endif // CONFIG_INC_H <|fim_middle|> CONFIG_INC_H #define CONFIG_INC_H #include "config_core.h" #include "config_panels.h" #...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>& ancestor_idx < ancestor_count; ancestor_idx -= 1) { CFG_PanelNode *ancestor = ancestors[ancestor_idx]; CFG_PanelNode *parent = ancestor->parent; if(parent != &cfg_nil_panel_node) { parent_rect = cfg_target_rect_from_panel_node_child(parent_rect, parent, ancestor); } }...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef CONFIG_PANELS_H #define CONFIG_PANELS_H typedef struct CFG_PanelNode CFG_PanelNode; struct CFG_PanelNode { // rjf: links data CFG_PanelNode *first; CFG_PanelNode *last; CFG_PanelNode...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #undef LAYER_COLOR #define LAYER_COLOR 0x684123ff //////////////////////////////// //~ rjf: Basic Helpers internal C_ID c_id_make(U64 u64_0, U64 u64_1) { C_ID id; id.u128[0].u64[0] = u64_0; i...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef CONTENT_H #define CONTENT_H //////////////////////////////// //~ NOTE(rjf): Hash Store Notes (2025/05/18) // // The hash store is a general-purpose data cache. It offers three layers of // c...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>e.slots = push_array(arena, D_DumpSlot, d_ctrl_state->dump_cache.slots_count); d_ctrl_state->dump_cache.stripes = stripe_array_alloc(arena); } //- rjf: set up user state { Arena *arena = arena_alloc(); d_user_state = push_array(arena, D_UserState, 1); d_user_state->arena = arena; ...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DBG_ENGINE_CORE_H #define DBG_ENGINE_CORE_H //////////////////////////////// //~ rjf: ID Types typedef U64 D_MsgID; typedef U32 D_MachineID; typedef U32 D_ControllerKind; typedef enum D_ControllerKindEnu...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>ng/event gathering internal DMN_Event *d_ctrl_thread__next_dmn_event(Arena *arena, DMN_CtrlCtx *ctrl_ctx, D_Msg *msg, DMN_RunCtrls *run_ctrls, D_Spoof *spoof); //- rjf: eval helpers internal U64 d_ctrl_eval_space_gen(E_Space space); internal B32 d_ctrl_eval_space_read(E_Space space, void *out, E_SpaceRan...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>engine_user.c" #include "dbg_engine_ctrl.c" <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "dbg_engine_core.c" #in<|fim_middle|>clude "dbg_<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifnd<|fim_suffix|>engine_user.h" #include "dbg_engine_ctrl.h" #endif // DBG_ENGINE_INC_H <|fim_middle|>ef DBG_ENGINE_INC_H #define DBG_ENGINE_INC_H #include "dbg_engine_core.h" #include "dbg_<|end...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #undef LAYER_COLOR #define LAYER_COLOR 0x4d9ae3ff //////////////////////////////// //~ rjf: Basic Helpers #if !defined(XXH_IMPLEMENTATION) # define XXH_IMPLEMENTATION # define XXH_STATIC_LINKING_ONLY # include "...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DBG_ENGINE_USER_H #define DBG_ENGINE_USER_H //////////////////////////////// //~ rjf: Line Info Types typedef struct D_Line D_Line; struct D_Line { String8 file_path; TxtPt pt; Rng1U6...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> 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 <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE C_LINKAGE_BEGIN String8 d_entity_kind_code_name_table[13] = { {0}, str8_l...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE #ifndef DBG_ENGINE_META_H #define DBG_ENGINE_META_H typedef enum D_CmdKind { D_CmdKind_Null, D_CmdKind_LaunchAndRun, D_CmdKind_LaunchAndStepInto, D_CmdKind_Kill, D_CmdKind_KillAl...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //////////////////////////////// //~ rjf: Helpers internal DI_Key di_key_zero(void) { DI_Key key = {0}; return key; } internal B32 di_key_match(DI_Key a, DI_Key b) { B32 result = MemoryMatchStruct(&a, &b);...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>al DI_EventList di_get_events(Arena *arena); //////////////////////////////// //~ rjf: Asynchronous Tick internal void di_async_tick(void); //////////////////////////////// //~ rjf: Conversion Completion Signal Receiver Thread internal void di_signal_completion(void); internal void di_conversion_compl...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>_array_no_zero(arena, DMN_Handle, dst.count); MemoryCopy(dst.handles, src->handles, sizeof(DMN_Handle)*dst.count); return dst; } //- rjf: event list building internal DMN_Event * dmn_event_list_push(Arena *arena, DMN_EventList *list) { DMN_EventNode *n = push_array(arena, DMN_EventNode, 1); SLLQ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>N_TrapChunkList *list, U64 cap, DMN_Trap *trap); internal void dmn_trap_chunk_list_concat_in_place(DMN_TrapChunkList *dst, DMN_TrapChunkList *to_push); internal void dmn_trap_chunk_list_concat_shallow_copy(Arena *arena, DMN_TrapChunkList *dst, DMN_TrapChunkList *to_push); //- rjf: handle lists internal v...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "demon/demon_core.c" #if OS_WINDOWS # include "win32/demon/win32_demon.c" #elif OS_LINUX # include "linux/demon/linux<|fim_suffix|>or Demon layer backend not defined for this operating syst...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>erating system. #endif #endif // DEMON_INC_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifnd<|fim_middle|>ef DEMON_INC_H #define DEMON_INC_H #include "demon/demon_core.h" #if OS_WINDOWS # include "win32/demon/win32_demon.h" ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>_END <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE C_LINKAGE_BEGIN String8 dmn_event_kind_string_table[22] = { str8_lit_comp("Null"), str8_lit_comp("Error"), str8_lit_comp("HandshakeComplete"), str8_lit_comp("C...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>nKind_MemoryRead, DMN_ExceptionKind_MemoryWrite, DMN_ExceptionKind_MemoryExecute, DMN_ExceptionKind_CppThrow, DMN_ExceptionKind_COUNT, } DMN_ExceptionKind; C_LINKAGE_BEGIN extern String8 dmn_event_kind_string_table[22]; extern String8 dmn_exception_kind_string_table[5]; C_LINKAGE_END #endif // DEMON_ME...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>t_strings.total_size + inst_strings.node_count + inst_string.size)}; dasm_line_chunk_list_push(scratch.arena, &line_list, 1024, &inst); str8_list_push(scratch.arena, &inst_strings, inst_string); } if(params.style_flags & DASM_StyleFlag_SourceFile...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DISASM_H #define DISASM_H //////////////////////////////// //~ rjf: Disassembly Syntax Types typedef enum DASM_Syntax { DASM_Syntax_Intel, DASM_Syntax_ATT, DASM_Syntax_COUNT } DASM_Syntax; ///////...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "disasm/disasm.c" #if defined(X64_H)<|fim_suffix|>/disasm/x64_disasm.c" #endif <|fim_middle|> # include "x64<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://op<|fim_suffix|>x64_disasm.h" #endif #endif // DISASM_INC_H <|fim_middle|>ensource.org/license/mit/) #ifndef DISASM_INC_H #define DISASM_INC_H #include "disasm/disasm.h" #if defined(X64_H) # include "x64/disasm/<|endoftext|>
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> xform).xy, xform_3f32(v3f32(og_clip.x1, og_clip.y1, 1), xform).xy); } if(dst_clip_is_set) { dst_group_n->params.clip = clip_is_set ? intersect_2f32(dst_clip, dst_group_n->params.clip) : dst_clip; } } ...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DRAW_H #define DRAW_H //////////////////////////////// //~ rjf: Fancy String Types typedef struct DR_FStrParams DR_FStrParams; struct DR_FStrParams { FNT_Tag font; FNT_RasterFlags raste...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) //- GENERATED CODE internal R_Tex2DSampleKind dr_push_tex2d_sample_kind(R_Tex2DSampleKind v) {DR_StackPushImpl(Tex2DSampleKind, tex2d_sample_kind, R_Tex2DSampleKind, v);} internal Mat3x3F32...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>nal Mat3x3F32 dr_push_xform2d(Mat3x3F32 v); internal Rng2F32 dr_push_clip(Rng2F32 v); internal F32 dr_push_transparency(F32 v); internal R_Tex2DSampleKind dr_pop_tex2d_sample_kind(void); internal Mat3x3F32 dr_pop_xform2d(...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> k) { String8 result = {0}; switch(k) { default:{}break; #define X(name, ...) case DW_CallingConventionKind_##name:{result = s(#name);}break; DW_CallingConventionKind_XList #undef X } return result; } internal String8 dw_string_from_ate(DW_ATE k) { String8 result = {0}; switch(k) ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>, op) (dw_info_from_expr_op((version), (exts), (op))->name) //- rjf: architecture info internal U64 dw_reg_count_from_arch(Arch arch); #endif // DWARF_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DWARF_H #define DWARF_...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>n-bootstrapping parse dw2_parse_ctx_equip_unit_root_tag(ctx, &root_tag, offset_tables); } } lane_sync(); //- rjf: dump all unit tag trees String8List *unit_dumps = 0; if(lane_idx() == 0) { unit_dumps = push_array(scratch.arena, String8List, unit_count); ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>endif // DWARF_DUMP_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DWARF_DUMP_H #define DWARF_DUMP_H //////////////////////////////// //~ rjf: Helpers internal String8List dw_dump_list_from_expr(Arena *arena, String8 dat...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> case DW_ExprOp_CallFrameCfa: { push_vals[0].u512.u64[0] = cfa; }break; //- rjf: implicit location descriptions (value is known, location is not) case DW_ExprOp_ImplicitValue: { push_vals[0] = operands[0]; }break; case DW_ExprOp_StackVal...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DWARF_EXPR_H #define DWARF_EXPR_H //////////////////////////////// //~ rjf: Evaluation Values typedef struct DW_EvalVal DW_EvalV<|fim_suffix|>tatus_ExecOpLimitReached, DW_EvalStatus_Unsup...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #include "dwarf/dwarf.c" #include "dwarf/dwarf_parse.c" #include "dwarf/dwarf_expr.c" #include "dwarf/dwarf_unwind.c" #include "dwarf/dwarf_dump.c" #if defined(COFF_H) # include "dwarf/dwarf_parse_coff.c" #endif #...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>" #if defined(COFF_H) # include "dwarf/dwarf_parse_coff.h" #endif #if defined(ELF_H) # include "dwarf/dwarf_parse_elf.h" #endif #endif // DWARF_INC_H <|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the M<|fim_middle|>IT license (https://opensource.org/license/mit/) #ifndef DWARF_INC_H ...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|> off, &fde_header); if(fde_header.kind == DW_CFIKind_FDE) { DW_CFIHeader cie_header = {0}; dw2_read_cfi_header(data, fde_header.cie_pointer, &cie_header); if(cie_header.kind == DW_CFIKind_CIE) { result = 1; dw2_read_cie(data, cie_header.entry_range.min, cie_...
fim
EpicGamesExt/raddebugger
c
<|fim_suffix|>r; struct DW2_UnitHeader { DW_Version version; DW_Format format; U64 abbrev_off; U64 addr_size; DW_CompUnitKind kind; U64 dwo_id; }; //////////////////////////////// //~ rjf: Abbreviation Map (ID -> .debug_abbrev Offset) typedef struct DW2_AbbrevAttrib DW2_AbbrevAttrib; struct DW2_AbbrevAttr...
fim
EpicGamesExt/raddebugger
c
<|fim_prefix|>// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) internal B32 dw_is_dwarf_present_coff_section_table(String8 string_table, U64 section_count, COFF_SectionHeader *section_table) { B32 is_dwarf_present = 0; for EachIndex(idx, section_count) { ...
fim
EpicGamesExt/raddebugger
c
// Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) #ifndef DWARF_PARSE_COFF_H #define DWARF_PARSE_COFF_H internal B32 dw_is_dwarf_present_coff_section_table(String8 string_table, U64 section_count, COFF_SectionHeader *section_table); internal DW_Raw dw_input_from...
fim
EpicGamesExt/raddebugger
c