coredump: just save latest core file
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
parent
2c24e5b430
commit
f07a1868ce
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user