mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-22 13:52:23 -08:00
major clean-up pass over unwinding/module-info abstraction, + usage in the debug engine. simplified / cleaned up DWARF helpers for unwind info & expressions. decoupling unwinding / DWARF evaluation from memory read callbacks. light module info now prepared by demon layer - debug engine no longer duplicates per-backend parsing. unwind abstraction layer now does thin abstraction over unwinding backends, debug engine only calls abstraction. clean up demon to have fewer ad-hoc 'queries' on handles, and prefer sending info over debug events when possible / when it fits the usage pattern. move DWARF enum specifications to metacode, generate enums/xlists/tables/etc. decouple raddbg/radbin completely from old parsing helpers. replace portion of DWARF dumping; pull out some new parsing helpers from converter / dumper.
This commit is contained in:
1 parent
541d3afefa
commit
d73ce364b9
88 files changed
+9899
-4723
No files matched your search
@@ -0,0 +1,45 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
|
||||
#ifndef UNWIND_H
|
||||
#define UNWIND_H
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Generated Code
|
||||
|
||||
#include "unwind/generated/unwind.meta.h"
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Unwind Artifact Types
|
||||
|
||||
typedef enum UWND_StepStatus
|
||||
{
|
||||
UWND_StepStatus_Error,
|
||||
UWND_StepStatus_FailedMemoryRead,
|
||||
UWND_StepStatus_Good,
|
||||
}
|
||||
UWND_StepStatus;
|
||||
|
||||
typedef struct UWND_StepResult UWND_StepResult;
|
||||
struct UWND_StepResult
|
||||
{
|
||||
UWND_StepStatus status;
|
||||
Rng1U64 missed_read_vaddr_range;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Module Info
|
||||
|
||||
typedef struct UWND_ModuleInfo UWND_ModuleInfo;
|
||||
struct UWND_ModuleInfo
|
||||
{
|
||||
U64 base_vaddr;
|
||||
void *unwind_info;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Abstracted Unwind Step Functions
|
||||
|
||||
internal UWND_StepResult uwnd_step(UWND_Unwinder unwinder, Arch arch, MemoryMap *memory_map, UWND_ModuleInfo *module_info, U64 tls_vaddr, void *regs, U64 *cfa_out);
|
||||
|
||||
#endif // UNWIND_H
|
||||
Reference in new issue
Block a user