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
+4
View File
@@ -487,6 +487,10 @@ void up_assert(const uint8_t *filename, int line)
{
fprintf(stderr, "Assertion failed at file:%s line: %d\n", filename, line);
#ifdef CONFIG_BOARD_CRASHDUMP
board_crashdump(up_getsp(), g_readytorun.head, filename, line);
#endif
// in interrupt context or idle task means kernel error
// which will stop the OS
// if in user space just terminate the task