mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	Kernel: Add ability to dump backtrace from provided frame pointer
When an exception happens it is sometimes hard to figure out where exactly the exception happened, so use the frame pointer of the trap frame to print a backtrace.
This commit is contained in:
		
							parent
							
								
									57901a6f62
								
							
						
					
					
						commit
						ad5e8bbb4f
					
				
					 3 changed files with 8 additions and 0 deletions
				
			
		|  | @ -49,6 +49,8 @@ extern "C" void exception_common(Kernel::TrapFrame const* const trap_frame) | |||
| 
 | ||||
|         auto esr_el1 = Kernel::Aarch64::ESR_EL1::read(); | ||||
|         dbgln("esr_el1: EC({:#b}) IL({:#b}) ISS({:#b}) ISS2({:#b})", esr_el1.EC, esr_el1.IL, esr_el1.ISS, esr_el1.ISS2); | ||||
| 
 | ||||
|         dump_backtrace_from_base_pointer(trap_frame->x[29]); | ||||
|     } | ||||
| 
 | ||||
|     Kernel::Processor::halt(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timon Kruiper
						Timon Kruiper