Files
u-boot/test/cmd/backtrace.c
Simon Glass b174084ef9 backtrace: Add a command
Add a new 'backtrace' command which prints the current call stack, which
is useful for debugging. The command is enabled by CONFIG_CMD_BACKTRACE

Add docs and a test.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-01 15:42:04 +00:00

23 lines
475 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Test for backtrace command
*
* Copyright 2025 Canonical Ltd
* Written by Simon Glass <simon.glass@canonical.com>
*/
#include <dm.h>
#include <dm/test.h>
#include <test/test.h>
#include <test/ut.h>
/* Test 'backtrace' command */
static int cmd_test_backtrace(struct unit_test_state *uts)
{
/* for now, just run the command */
ut_assertok(run_command("backtrace", 0));
return 0;
}
DM_TEST(cmd_test_backtrace, UTF_SCAN_FDT);