Add support for dumping board-specific information on assertion. From David Sidrane

This commit is contained in:
Gregory Nutt
2015-03-04 07:00:29 -06:00
parent 81ac04bbaf
commit 76007d28f5
16 changed files with 116 additions and 0 deletions
+5
View File
@@ -299,5 +299,10 @@ void up_assert(const uint8_t *filename, int lineno)
#endif
up_dumpstate();
#ifdef CONFIG_BOARD_CRASHDUMP
board_crashdump(up_getsp(), g_readytorun.head, filename, lineno);
#endif
_up_assert(EXIT_FAILURE);
}