Compare commits

..

No commits in common. "70db6f961cc8682a0f566a3da50815507a4be551" and "e38b37404d018c4deaaa3d14402e9be2f8cbba97" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

@ -32,14 +32,10 @@ void stack_dump_call_info(uint64_t rip, symbol_T* symbol) {
void stack_trace_call_stack(uint64_t rbp) { void stack_trace_call_stack(uint64_t rbp) {
uint64_t rip = ((uint64_t*)rbp)[1]; uint64_t rip = ((uint64_t*)rbp)[1];
process_T* process = scheduler_get_current_process(); process_T* process = scheduler_get_current_process();
if (process == NULL) {
log(LOG_NONE, " 0x%x -> <failed to resolve symbol> (process NULL reference)", rip);
return;
}
symbol_T* symbol = symbol_resolve_function_from_rip(process->executable->symbols, process->executable->num_symbols, rip); symbol_T* symbol = symbol_resolve_function_from_rip(process->executable->symbols, process->executable->num_symbols, rip);
if (symbol == NULL) { if (symbol == NULL) {
log(LOG_NONE, " 0x%x -> <failed to resolve symbol> (symbol NULL reference)", rip); log(LOG_NONE, " 0x%x -> <failed to resolve symbol>", rip);
return; return;
} }

View File

@ -91,7 +91,7 @@ void panic_log_call_stack(cpu_state_T* state) {
symbol_T* symbol = symbol_resolve_function_from_rip(process->executable->symbols, process->executable->num_symbols, state->rip); symbol_T* symbol = symbol_resolve_function_from_rip(process->executable->symbols, process->executable->num_symbols, state->rip);
if (symbol == NULL) { if (symbol == NULL) {
log(LOG_NONE, " 0x%x -> <failed to resolve symbol> (symbol NULL reference)", state->rip); log(LOG_NONE, " 0x%x -> <failed to resolve symbol>", state->rip);
return; return;
} }