mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-25 17:03:44 +00:00
eliminate per-callstack-frame 'parent num' - redundant info
This commit is contained in:
@@ -3218,7 +3218,6 @@ ctrl_call_stack_from_unwind(Arena *arena, DI_Scope *di_scope, CTRL_Entity *proce
|
||||
U64 inline_frame_idx = 0;
|
||||
for(FrameNode *inline_frame = first_inline_frame; inline_frame != 0; inline_frame = inline_frame->next, inline_frame_idx += 1)
|
||||
{
|
||||
inline_frame->v.parent_num = frame_count;
|
||||
inline_frame->v.inline_depth = inline_frame_count - inline_frame_idx;
|
||||
if(inline_frame == last_inline_frame)
|
||||
{
|
||||
@@ -3250,7 +3249,7 @@ ctrl_call_stack_frame_from_unwind_and_inline_depth(CTRL_CallStack *call_stack, U
|
||||
U64 base_frame_idx = 0;
|
||||
for(U64 idx = 0; idx < call_stack->count; idx += 1)
|
||||
{
|
||||
if(call_stack->frames[idx].parent_num == 0)
|
||||
if(call_stack->frames[idx].inline_depth == 0)
|
||||
{
|
||||
if(base_frame_idx == unwind_count)
|
||||
{
|
||||
|
||||
@@ -245,7 +245,6 @@ struct CTRL_Unwind
|
||||
typedef struct CTRL_CallStackFrame CTRL_CallStackFrame;
|
||||
struct CTRL_CallStackFrame
|
||||
{
|
||||
U64 parent_num;
|
||||
U64 unwind_count;
|
||||
U64 inline_depth;
|
||||
void *regs;
|
||||
|
||||
Reference in New Issue
Block a user