mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	Kernel: Symbolicate the crash address too, not just the call stack.
Also print it in shiny red to make it extra easy to spot. :^) Fixes #244.
This commit is contained in:
		
							parent
							
								
									c5d623e048
								
							
						
					
					
						commit
						15bea7153a
					
				
					 3 changed files with 11 additions and 7 deletions
				
			
		|  | @ -740,11 +740,13 @@ void Process::sys$sigreturn() | |||
|     ASSERT_NOT_REACHED(); | ||||
| } | ||||
| 
 | ||||
| void Process::crash(int signal) | ||||
| void Process::crash(int signal, dword eip) | ||||
| { | ||||
|     ASSERT_INTERRUPTS_DISABLED(); | ||||
|     ASSERT(!is_dead()); | ||||
| 
 | ||||
|     if (m_elf_loader && ksyms_ready) | ||||
|         dbgprintf("\033[31;1m%p  %s\033[0m\n", eip, m_elf_loader->symbolicate(eip).characters()); | ||||
|     dump_backtrace(); | ||||
| 
 | ||||
|     m_termination_signal = signal; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling