mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	Kernel: Simplify dump_backtrace() API for clients.
It makes no sense that clients had to worry about whether or not KSyms were loaded.
This commit is contained in:
		
							parent
							
								
									7a2da54c07
								
							
						
					
					
						commit
						2f4e7edee5
					
				
					 6 changed files with 10 additions and 11 deletions
				
			
		|  | @ -281,7 +281,7 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs) | |||
|             regs.exception_code & 2 ? "write" : "read", | ||||
|             faultAddress); | ||||
|         dump(regs); | ||||
|         dump_backtrace(ksyms_ready); | ||||
|         dump_backtrace(); | ||||
|         current->process().crash(); | ||||
|     } else if (response == PageFaultResponse::Continue) { | ||||
| #ifdef PAGE_FAULT_DEBUG | ||||
|  | @ -491,8 +491,7 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const | |||
| { | ||||
|     asm volatile("cli"); | ||||
|     kprintf("ASSERTION FAILED: %s\n%s:%u in %s\n", msg, file, line, func); | ||||
|     extern void dump_backtrace(bool); | ||||
|     dump_backtrace(true); | ||||
|     dump_backtrace(); | ||||
|     asm volatile("hlt"); | ||||
|     for (;;); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling