Skip to content

Commit

Permalink
[Kernel] Re-enable user-mode frame symbolication
Browse files Browse the repository at this point in the history
  • Loading branch information
codyd51 committed Dec 26, 2022
1 parent 8dc7990 commit d693aab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/kernel/assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ bool symbolicate_and_append(int frame_idx, uintptr_t* frame_addr, char** buf_hea
}
}
else {
/*
task_small_t* current_task = tasking_get_current_task();
const char* program_symbol = elf_sym_lookup(&current_task->elf_symbol_table, (uintptr_t)frame_addr);
snprintf(symbol, sizeof(symbol), "[%s] %s", current_task->name, program_symbol);
if (!strncmp(program_symbol, "_start", 8)) {
if (!strncmp(program_symbol, "_start", 7)) {
found_program_start = true;
}
*/
}

printf("[%02d] 0x%p %s\n", frame_idx, (uintptr_t)frame_addr, symbol);
Expand Down

0 comments on commit d693aab

Please sign in to comment.