mirror of https://github.com/ARMmbed/mbed-os.git
The stack dump of the major should be moved up.
parent
7dc53176ae
commit
5258768bc7
|
@ -598,6 +598,8 @@ static void print_error_report(const mbed_error_ctx *ctx, const char *error_msg,
|
||||||
ctx->thread_id, ctx->thread_entry_address, ctx->thread_stack_size, ctx->thread_stack_mem, ctx->thread_current_sp);
|
ctx->thread_id, ctx->thread_entry_address, ctx->thread_stack_size, ctx->thread_stack_mem, ctx->thread_current_sp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
print_stack_dump(ctx->thread_stack_mem, ctx->thread_stack_size, ctx->thread_current_sp);
|
||||||
|
|
||||||
#if MBED_CONF_PLATFORM_ERROR_ALL_THREADS_INFO && defined(MBED_CONF_RTOS_PRESENT)
|
#if MBED_CONF_PLATFORM_ERROR_ALL_THREADS_INFO && defined(MBED_CONF_RTOS_PRESENT)
|
||||||
mbed_error_printf("\nNext:");
|
mbed_error_printf("\nNext:");
|
||||||
print_thread(osRtxInfo.thread.run.next);
|
print_thread(osRtxInfo.thread.run.next);
|
||||||
|
@ -619,8 +621,6 @@ static void print_error_report(const mbed_error_ctx *ctx, const char *error_msg,
|
||||||
mbed_error_printf("\nFor more info, visit: https://mbed.com/s/error?error=0x%08X&osver=%" PRId32 "&core=0x%08" PRIX32 "&comp=%d&ver=%" PRIu32 "&tgt=" GET_TARGET_NAME(TARGET_NAME), ctx->error_status, sys_stats.os_version, sys_stats.cpu_id, sys_stats.compiler_id, sys_stats.compiler_version);
|
mbed_error_printf("\nFor more info, visit: https://mbed.com/s/error?error=0x%08X&osver=%" PRId32 "&core=0x%08" PRIX32 "&comp=%d&ver=%" PRIu32 "&tgt=" GET_TARGET_NAME(TARGET_NAME), ctx->error_status, sys_stats.os_version, sys_stats.cpu_id, sys_stats.compiler_id, sys_stats.compiler_version);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
print_stack_dump(ctx->thread_stack_mem, ctx->thread_stack_size, ctx->thread_current_sp);
|
|
||||||
|
|
||||||
mbed_error_printf("\n-- MbedOS Error Info --\n");
|
mbed_error_printf("\n-- MbedOS Error Info --\n");
|
||||||
}
|
}
|
||||||
#endif //ifndef NDEBUG
|
#endif //ifndef NDEBUG
|
||||||
|
|
Loading…
Reference in New Issue