From f07a1868ce0c71dd548912759cd0c6e006e82b56 Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Mon, 29 Jul 2024 12:23:41 +0800 Subject: [PATCH] coredump: just save latest core file Signed-off-by: wanggang26 --- sched/misc/coredump.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sched/misc/coredump.c b/sched/misc/coredump.c index 9fc3427da8..8498998478 100644 --- a/sched/misc/coredump.c +++ b/sched/misc/coredump.c @@ -134,12 +134,6 @@ static void coredump_dump_blkdev(pid_t pid) } info = (FAR struct coredump_info_s *)g_blockinfo; - if (info->magic == COREDUMP_MAGIC) - { - _alert("Coredump exists in %s, skip\n", - CONFIG_BOARD_COREDUMP_BLKDEV_PATH); - return; - } #ifdef CONFIG_BOARD_COREDUMP_COMPRESSION lib_lzfoutstream(&g_lzfstream,