mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch/ all assertion functions: up_assert move the register dump to first make the more important info first
This commit is contained in:
@@ -144,6 +144,20 @@ static void up_dumpstate(void)
|
||||
uint32_t istacksize;
|
||||
#endif
|
||||
|
||||
/* Dump the registers (if available) */
|
||||
|
||||
if (g_current_regs != NULL)
|
||||
{
|
||||
up_registerdump((uint32_t*)g_current_regs);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Capture and dump user registers by hand */
|
||||
|
||||
up_saveusercontext(s_last_regs);
|
||||
up_registerdump(s_last_regs);
|
||||
}
|
||||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
@@ -218,20 +232,6 @@ static void up_dumpstate(void)
|
||||
up_stackdump(sp, ustackbase);
|
||||
}
|
||||
|
||||
/* Then dump the registers (if available) */
|
||||
|
||||
if (g_current_regs != NULL)
|
||||
{
|
||||
up_registerdump((uint32_t*)g_current_regs);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Capture and dump user registers by hand */
|
||||
|
||||
up_saveusercontext(s_last_regs);
|
||||
up_registerdump(s_last_regs);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_USBDUMP
|
||||
/* Dump USB trace data */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user