creport: Parse info for crashed thread

This commit is contained in:
Michael Scire
2018-06-25 03:04:17 -06:00
parent 7cd44e8980
commit e6b7793916
5 changed files with 104 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include <switch.h>
#include "creport_debug_types.hpp"
#include "creport_thread_info.hpp"
enum class CrashReportResult : Result {
UndefinedInstruction = 0x00A8,
@@ -31,6 +32,7 @@ class CrashReport {
/* Exception Info. */
ExceptionInfo exception_info;
ThreadInfo crashed_thread_info;
public:
CrashReport() : debug_handle(INVALID_HANDLE), result((Result)CrashReportResult::IncompleteReport), process_info({}), exception_info({}) { }