[c-host] added initial crash handler stub

This commit is contained in:
Geoffrey McRae
2019-04-11 11:34:22 +10:00
parent d8915dbfc9
commit 611216286e
6 changed files with 154 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "common/debug.h"
#include "common/locking.h"
#include "common/KVMFR.h"
#include "common/crash.h"
#include <stdio.h>
#include <inttypes.h>
@@ -257,6 +258,9 @@ static bool captureRestart()
int app_main()
{
if (!installCrashHandler())
DEBUG_WARN("Failed to install the crash handler");
unsigned int shmemSize = os_shmemSize();
uint8_t * shmemMap = NULL;
int exitcode = 0;