coredump: just save latest core file

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2024-07-29 12:23:41 +08:00 committed by Xiang Xiao
parent 2c24e5b430
commit f07a1868ce
1 changed files with 0 additions and 6 deletions

View File

@ -134,12 +134,6 @@ static void coredump_dump_blkdev(pid_t pid)
} }
info = (FAR struct coredump_info_s *)g_blockinfo; 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 #ifdef CONFIG_BOARD_COREDUMP_COMPRESSION
lib_lzfoutstream(&g_lzfstream, lib_lzfoutstream(&g_lzfstream,