Compare commits
2 Commits
e38b37404d
...
70db6f961c
Author | SHA1 | Date |
---|---|---|
antifallobst | 70db6f961c | |
antifallobst | b2733a3810 |
|
@ -32,10 +32,14 @@ void stack_dump_call_info(uint64_t rip, symbol_T* symbol) {
|
|||
void stack_trace_call_stack(uint64_t rbp) {
|
||||
uint64_t rip = ((uint64_t*)rbp)[1];
|
||||
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);
|
||||
|
||||
if (symbol == NULL) {
|
||||
log(LOG_NONE, " 0x%x -> <failed to resolve symbol>", rip);
|
||||
log(LOG_NONE, " 0x%x -> <failed to resolve symbol> (symbol NULL reference)", rip);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
if (symbol == NULL) {
|
||||
log(LOG_NONE, " 0x%x -> <failed to resolve symbol>", state->rip);
|
||||
log(LOG_NONE, " 0x%x -> <failed to resolve symbol> (symbol NULL reference)", state->rip);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue