mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:42:44 +00:00 
			
		
		
		
	LibCoreDump+CrashDaemon: Add and use CoreDump::Backtrace
Creating a backtrace from a crashdump already existed as a few standalone functions in CrashDaemon. This patch refactors the code required for this to make it generally usable and moves it to CoreDump::Backtrace, which provides both raw data as well as stringification.
This commit is contained in:
		
							parent
							
								
									e2e2b2c08e
								
							
						
					
					
						commit
						2939ad0110
					
				
					 8 changed files with 251 additions and 114 deletions
				
			
		|  | @ -24,7 +24,8 @@ | |||
|  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
|  */ | ||||
| 
 | ||||
| #include "Reader.h" | ||||
| #include <LibCoreDump/Backtrace.h> | ||||
| #include <LibCoreDump/Reader.h> | ||||
| #include <string.h> | ||||
| 
 | ||||
| namespace CoreDump { | ||||
|  | @ -120,4 +121,9 @@ const ELF::Core::MemoryRegionInfo* Reader::region_containing(FlatPtr address) co | |||
|     return ret; | ||||
| } | ||||
| 
 | ||||
| Backtrace Reader::backtrace() const | ||||
| { | ||||
|     return Backtrace(*this); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh