This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7ccc078a996bf45ab85d10477a893d3b79ca0b61 Author: yangao1 <[email protected]> AuthorDate: Mon Jun 30 17:27:10 2025 +0800 assert.c:fix bug for dump_core_info dump_core_info() uses rtcb, filename, linenum, msg and regs for the board crash dump and for the coredump of the crashing task, but it took no arguments, so it did not build with CONFIG_BOARD_CRASHDUMP_CUSTOM or without CONFIG_BOARD_COREDUMP_FULL. Pass them from _assert(). Signed-off-by: yangao1 <[email protected]> --- sched/misc/assert.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sched/misc/assert.c b/sched/misc/assert.c index 5c9c0b5f629..e2285be3e7e 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -828,7 +828,8 @@ static void dump_fatal_info(FAR struct tcb_s *rtcb, * Name: dump_core_info ****************************************************************************/ -static void dump_core_info(void) +static void dump_core_info(FAR struct tcb_s *rtcb, FAR const char *filename, + int linenum, FAR const char *msg, FAR void *regs) { #ifdef CONFIG_BOARD_CRASHDUMP_CUSTOM board_crashdump(up_getsp(), rtcb, filename, linenum, msg, regs); @@ -979,7 +980,7 @@ void _assert(FAR const char *filename, int linenum, /* Dump core information */ - dump_core_info(); + dump_core_info(rtcb, filename, linenum, msg, regs); reboot_notifier_call_chain(SYS_HALT, NULL);
